https://github.com/ninech/docker-rails-example
The sample repository to the blog article.
https://github.com/ninech/docker-rails-example
docker docker-compose rails
Last synced: about 1 year ago
JSON representation
The sample repository to the blog article.
- Host: GitHub
- URL: https://github.com/ninech/docker-rails-example
- Owner: ninech
- Created: 2017-06-02T15:28:26.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-01-06T08:16:19.000Z (over 6 years ago)
- Last Synced: 2025-03-28T05:31:49.956Z (about 1 year ago)
- Topics: docker, docker-compose, rails
- Language: Ruby
- Homepage: https://www.nine.ch/en/tech-blog/docker-for-development-at-nine
- Size: 38.1 KB
- Stars: 1
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README
An example on how to leverage Docker for Ruby (on Rails) development.
## Development
docker-compose build --pull
docker-compose up app
`docker-compose ps` will tell you, on which local port the application binds.
## Launch tests
docker-compose build --pull
docker-compose -f docker-compose.test.yml run --rm app
## Prepare for airplane mode
docker-compose pull
## Troubleshooting
Have you tried to turn it off an on again?
# Turn off
docker-compose kill
docker-compose rm -fv
# Turn on
docker-compose up app
Check the logs:
docker-compose logs
You can enter a running container:
docker-compose exec app /bin/sh