services: web: build: app working_dir: /app command: /app/deploy/entrypoint.prod.sh env_file: .env environment: DJANGO_SETTINGS_MODULE: config.settings.production volumes: - /srv/sum/nohype/static:/app/staticfiles - /srv/sum/nohype/media:/app/media ports: - "127.0.0.1:8001:8000" depends_on: db: condition: service_healthy restart: unless-stopped db: image: postgres:16-alpine env_file: .env environment: POSTGRES_DB: nohype POSTGRES_USER: nohype volumes: - nohype_pg:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U nohype -d nohype"] interval: 5s timeout: 5s retries: 10 start_period: 10s restart: unless-stopped volumes: nohype_pg: