https://github.com/kikyous/docker-rails
Dockernize your rails app easiest way
https://github.com/kikyous/docker-rails
docker rails
Last synced: 4 months ago
JSON representation
Dockernize your rails app easiest way
- Host: GitHub
- URL: https://github.com/kikyous/docker-rails
- Owner: kikyous
- Created: 2016-01-30T18:00:12.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-02-08T08:25:23.000Z (over 9 years ago)
- Last Synced: 2025-05-18T16:55:48.577Z (about 1 year ago)
- Topics: docker, rails
- Language: Nginx
- Homepage:
- Size: 13.7 KB
- Stars: 8
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dockernize your rails app easiest way
## add Dockerfile
add this Dockerfile to your rails app root
```
FROM kikyous/docker-rails
MAINTAINER someone
RUN mv database.yml.example database.yml \
&& bundle exec rake assets:precompile
```
## what's in it
- ruby 2.3
- nginx
- redis 3.2
- nodejs and npm
## Customize Procfile
- add a *Procfile* to you project root
```
web: bundle exec rake db:migrate RAILS_ENV=production && bundle exec puma
nginx: nginx -c /etc/nginx/nginx.conf
redis: redis-server
sidekiq: bundle exec sidekiq RAILS_ENV=production
```
## Customize puma/unicorn config file
- add you config file (puma.rb or unicorn.rb) to /config