Skip to content

Instantly share code, notes, and snippets.

@tuwukee
Created October 30, 2019 20:52
Show Gist options
  • Save tuwukee/bfe9b2977a62f19bbd918e3dd90374e1 to your computer and use it in GitHub Desktop.
Save tuwukee/bfe9b2977a62f19bbd918e3dd90374e1 to your computer and use it in GitHub Desktop.
version: '3'
services:
db:
image: postgres:10.5-alpine
ports:
- 5432:5432
volumes:
- ./tmp/postgres_data:/var/lib/postgresql/data
web:
build:
context: .
dockerfile: Dockerfile
command: /bin/bash -c "rm -f /tmp/server.pid && bundle exec rails server -b 0.0.0.0 -P /tmp/server.pid"
ports:
- 3000:3000
depends_on:
- db
volumes:
- .:/app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment