version: '3'
services:
db:
image: postgres
environment:
POSTGRES_PASSWORD: Provizorro666
POSTGRES_USER: provizorro
volumes:
- ./data-pg:/var/lib/posgresql/data
web:
restart: always
build: .
volumes:
- .:/code
command: bash -c "python3.7 src/manage.py runserver 0.0.0.0:8000"
ports:
- "8000:8000"
depends_on:
- db