- version: "3"
- volumes:
- db-data:
-
- services:
- db:
- image: postgres:12
- volumes:
- - db-data:/var/lib/postgresql/data
- environment:
- - POSTGRES_DB=$DB_NAME
- - POSTGRES_PASSWORD=$DB_PASSWORD
- web:
- build:
- context: ..
- dockerfile: docker/Dockerfile
- env_file:
- - .env
- ports:
- - 8000:8000
- depends_on:
- - db
- command: bash -c 'while !</dev/tcp/db/5432; do sleep 1; done; uwsgi /opt/healthchecks/docker/uwsgi.ini'
-
|