YAML folded block scalar (>) was preserving newlines for more-indented continuation lines, so gunicorn received no arguments and defaulted to binding on 127.0.0.1:8000. Replace with an explicit entrypoint script so all args are passed correctly. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
37 lines
813 B
YAML
37 lines
813 B
YAML
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:
|