fix: drop service_healthy depends_on — podman-compose doesn't support it
Forgejo restart: unless-stopped handles the retry loop until Postgres is ready. https://claude.ai/code/session_01FKCW3FDjNFj6jve4niMFXH
This commit is contained in:
parent
bd863cdf33
commit
de4b5c49ab
1 changed files with 1 additions and 7 deletions
|
|
@ -73,11 +73,6 @@ services:
|
|||
- hiy-pg-data:/var/lib/postgresql/data
|
||||
# SQL files here run once on first init (ignored if data volume already exists).
|
||||
- ./postgres-init:/docker-entrypoint-initdb.d:ro
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U hiy_admin -d hiy"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
networks:
|
||||
- hiy-net
|
||||
|
||||
|
|
@ -101,8 +96,7 @@ services:
|
|||
volumes:
|
||||
- forgejo-data:/data
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
- postgres
|
||||
networks:
|
||||
- hiy-net
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue