From 97c4165f55c4574efb554c9dae8d919d08da1cdd Mon Sep 17 00:00:00 2001 From: Luigi Date: Mon, 18 Dec 2023 23:18:05 +0100 Subject: [PATCH] Improve depends_on docker-compose (#4249) * Improve depends_on checking the service is up and healthy before start the service that might cause issue first boot * Docker version Ubuntu 22.04 has a version which doesn't support restart --- docker-compose.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index d879919a..42a5c06b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -37,7 +37,8 @@ services: timeout: 5s retries: 2 depends_on: - - invidious-db + invidious-db: + condition: service_healthy invidious-db: image: docker.io/library/postgres:14