ausglamr/docker-compose.yml

34 lines
782 B
YAML
Raw Normal View History

2024-01-04 11:54:56 +11:00
services:
db:
image: postgres:13
env_file: .env
2025-10-04 16:54:54 +10:00
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 10s
retries: 5
start_period: 30s
timeout: 10s
2024-01-04 11:54:56 +11:00
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- main
web:
build: .
env_file: .env
restart: unless-stopped
2024-01-26 11:00:26 +11:00
command: python manage.py runserver 0.0.0.0:8000 # only use in dev
# command: gunicorn --env DJANGO_SETTINGS_MODULE=ausglamr.settings ausglamr.wsgi --workers=4 --threads=3 -b 0.0.0.0:8000
2024-01-04 11:54:56 +11:00
volumes:
- .:/app
depends_on:
2025-10-04 16:54:54 +10:00
db:
condition: service_healthy
restart: true
2024-01-04 11:54:56 +11:00
networks:
- main
ports:
2024-01-08 09:33:01 +11:00
- "8282:8000"
2024-01-04 11:54:56 +11:00
volumes:
pgdata:
networks:
main: