pkmntrade.club/docker-compose.yml

35 lines
No EOL
737 B
YAML

services:
web:
build: .
command: ["django-admin", "runserver", "0.0.0.0:8000"]
ports:
- 8000:8000
restart: always
volumes:
- ./seed:/seed:ro
env_file:
- .env
environment:
- DEBUG=true
- PUBLIC_HOST=localhost
- ALLOWED_HOSTS=127.0.0.1,localhost
depends_on:
db:
condition: service_healthy
db:
image: postgres:16
restart: always
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- "POSTGRES_HOST_AUTH_METHOD=trust"
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres", "-d", "postgres"]
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres_data: