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
|
2024-01-27 11:26:05 +11:00
|
|
|
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
|
2025-04-22 17:39:12 +10:00
|
|
|
# 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:
|
2024-07-30 20:23:22 +10:00
|
|
|
main:
|