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:
Claude 2026-03-26 11:41:27 +00:00
parent bd863cdf33
commit de4b5c49ab
No known key found for this signature in database

View file

@ -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