Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "3"
- services:
- db:
- image: postgres:9.6
- volumes:
- - pg_data:/var/lib/postgresql/data/
- environment:
- POSTGRES_DB: derp
- POSTGRES_USER: postgres
- POSTGRES_PASSWORD: postgres
- api:
- build: .
- command: python /code/api/manage.py migrate --noinput
- command: python /code/api/manage.py runserver 8000
- volumes:
- - .:/code
- ports:
- - "8000:8000"
- - "6379:6379"
- depends_on:
- - db
- volumes:
- pg_data: {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement