Last active
April 1, 2019 14:33
-
-
Save pablofullana/cf940e174240e497ebce9d4f8b3ed857 to your computer and use it in GitHub Desktop.
Docker | Ruby on Rails + PostgreSQL + Redis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
db: | |
image: postgres:latest | |
ports: | |
- "5432:5432" | |
redis: | |
image: redis:latest | |
ports: | |
- "6379:6379" | |
web: | |
stdin_open: true | |
tty: true | |
build: . | |
command: bundle exec rails s -p 3000 -b '0.0.0.0' | |
volumes: | |
- .:/myapp | |
ports: | |
- "3000:3000" | |
depends_on: | |
- db | |
- redis |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment