From de4b5c49ab453edd20128b7268e7267d6c0cfd68 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 26 Mar 2026 11:41:27 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20drop=20service=5Fhealthy=20depends=5Fon?= =?UTF-8?q?=20=E2=80=94=20podman-compose=20doesn't=20support=20it?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Forgejo restart: unless-stopped handles the retry loop until Postgres is ready. https://claude.ai/code/session_01FKCW3FDjNFj6jve4niMFXH --- infra/docker-compose.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/infra/docker-compose.yml b/infra/docker-compose.yml index 16aa99a..d81ce6f 100644 --- a/infra/docker-compose.yml +++ b/infra/docker-compose.yml @@ -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