https://github.com/shilgam/docker-rails
75
Build the Docker image:
$ docker-compose build
Boot the app:
$ docker-compose up
Create the database. In another terminal, run:
$ docker-compose run web rake db:create
View the welcome page: http://localhost:3000
Stop the application:
$ docker-compose down
Restart the application:
$ docker-compose up
Rebuild the application:
If you make changes to the Gemfile or the Compose file:
$ docker-compose up --build
full rebuild requires a re-run of
$ docker-compose run web bundle install
to sync changes in the Gemfile.lock to the host, followed by docker-compose up --build.
Content type
Image
Digest
Size
413.4 MB
Last updated
over 8 years ago
docker pull shilgam/docker-rails:specs_under_docker