We'll show you how to set up Docker Compose with Rails. We'll take a very practical approach by starting from scratch. We'll build a simple Rails app, get it working locally, and then get it working with docker compose. We'll configure things so the app can run both locally and with docker.
Docker Compose Commands
docker-compose build
docker-compose up
docker-compose exec web
More:
docker-compose start
docker-compose stop
Docker Commands
docker build -t boltops/docker-compose-rails .
docker run boltops/docker-compose-rails
docker push boltops/docker-compose-rails
Links:
- GitHub: boltops-learn/docker-compose-rails
- Docker Docs: Quickstart: Compose and Rails
Docker Essentials
1h 46m
Explore lesson as part of a learning path
Get full access to these great resources
All for less than the price of coffee a day