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
|
- hiy-pg-data:/var/lib/postgresql/data
|
||||||
# SQL files here run once on first init (ignored if data volume already exists).
|
# SQL files here run once on first init (ignored if data volume already exists).
|
||||||
- ./postgres-init:/docker-entrypoint-initdb.d:ro
|
- ./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:
|
networks:
|
||||||
- hiy-net
|
- hiy-net
|
||||||
|
|
||||||
|
|
@ -101,8 +96,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- forgejo-data:/data
|
- forgejo-data:/data
|
||||||
depends_on:
|
depends_on:
|
||||||
postgres:
|
- postgres
|
||||||
condition: service_healthy
|
|
||||||
networks:
|
networks:
|
||||||
- hiy-net
|
- hiy-net
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue