Skip to content

Instantly share code, notes, and snippets.

@jorgedjr21
Created September 29, 2019 03:35
Show Gist options
  • Save jorgedjr21/f23f27159c9276054b159a12eda59b26 to your computer and use it in GitHub Desktop.
Save jorgedjr21/f23f27159c9276054b159a12eda59b26 to your computer and use it in GitHub Desktop.
version: '3'
services:
db:
image: postgres
volumes:
- ./tmp/db:/var/lib/postgresql/data
web:
build: .
image: jorgedjr21/rails6
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
environment:
- DB_HOST=db
volumes:
- .:/myapp
ports:
- "3000:3000"
depends_on:
- db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment