Stabilize PR CI and harden compose startup
Some checks failed
CI / ci (pull_request) Failing after 6s

This commit is contained in:
Codex_B
2026-02-28 13:01:27 +00:00
parent 06be5d6752
commit 11b89e9e1c
3 changed files with 37 additions and 43 deletions

View File

@@ -1,6 +1,7 @@
services:
web:
build: .
working_dir: /app
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/app
@@ -19,7 +20,8 @@ services:
DEFAULT_FROM_EMAIL: hello@nohypeai.com
NEWSLETTER_PROVIDER: buttondown
depends_on:
- db
db:
condition: service_healthy
db:
image: postgres:16-alpine
@@ -29,6 +31,12 @@ services:
POSTGRES_PASSWORD: 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: 5s
volumes:
nohype_pg: