Skip to content

Instantly share code, notes, and snippets.

@tushartuteja
Created December 15, 2018 16:42
Show Gist options
  • Save tushartuteja/e24638e07490f7fe7ef7b91dd9528590 to your computer and use it in GitHub Desktop.
Save tushartuteja/e24638e07490f7fe7ef7b91dd9528590 to your computer and use it in GitHub Desktop.
docker compose for rails and postgres
version: '3'
services:
db:
image: postgres
volumes:
- ./tmp/db:/var/lib/postgresql/data
web:
build: .
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