Stabilize PR CI and harden compose startup
Some checks failed
CI / ci (pull_request) Failing after 6s
Some checks failed
CI / ci (pull_request) Failing after 6s
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user