Skip to content

Instantly share code, notes, and snippets.

@szromek
Last active February 7, 2019 09:36
Show Gist options
  • Save szromek/61493f81677158a6f04bbb84d743c35a to your computer and use it in GitHub Desktop.
Save szromek/61493f81677158a6f04bbb84d743c35a to your computer and use it in GitHub Desktop.
Docker compose for RoR application with debugger enabled
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