Last active
February 7, 2019 09:36
-
-
Save szromek/61493f81677158a6f04bbb84d743c35a to your computer and use it in GitHub Desktop.
Docker compose for RoR application with debugger enabled
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: '2' | |
services: | |
db: | |
image: postgres | |
volumes: | |
- postgres-volume:/var/lib/postgresql/data | |
web: | |
build: . | |
command: rails s -b 0.0.0.0 -p 3000 | |
volumes: | |
- .:/app | |
ports: | |
- "3000:3000" | |
depends_on: | |
- db | |
env_file: | |
- .env | |
environment: | |
- DB_USERNAME=postgres | |
- DB_PASSWORD= | |
- DB_HOST=db | |
- DB_NAME=application | |
tty: true | |
stdin_open: true | |
volumes: | |
postgres-volume: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment