From 95f0f7bfd0a92a0d2750a23312bfd90039acab92 Mon Sep 17 00:00:00 2001 From: Stavros Iliopoulos Date: Sun, 13 Aug 2023 22:31:05 +0300 Subject: [PATCH] Update docker-compose.yml --- apps/tandoor/docker-compose.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/tandoor/docker-compose.yml b/apps/tandoor/docker-compose.yml index 9a611433..11e84e40 100644 --- a/apps/tandoor/docker-compose.yml +++ b/apps/tandoor/docker-compose.yml @@ -19,6 +19,12 @@ services: networks: - tipi_main_network restart: unless-stopped + healthcheck: + test: wget --no-verbose --tries=1 --spider http://localhost:8080 + interval: 10s + timeout: 5s + retries: 5 + start_period: 30s labels: # Main traefik.enable: true @@ -45,7 +51,8 @@ services: traefik.http.routers.tandoor-local.service: tandoor traefik.http.routers.tandoor-local.tls: true depends_on: - - tandoor-db + tandoor-db: + condition: service_healthy tandoor-db: image: postgres:15-alpine