From 355b73775fea4a043213041107e03bc4e1908271 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Tue, 7 Oct 2025 21:24:52 +0200 Subject: [PATCH] fix w compose --- docker-compose.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index a65d7f4..b6b287a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,7 +7,13 @@ services: expose: - "${APP_PORT:-8000}" healthcheck: - test: ["CMD", "python", "-c", "import urllib.request; import sys; req = urllib.request.Request('http://localhost:${APP_PORT:-8000}/healthcheck', headers={'X-Internal-Check': '${HEALTHCHECK_TOKEN}'}); sys.exit(0) if urllib.request.urlopen(req).read() == b'OK' else sys.exit(1)"] + test: + [ + "CMD", + "python", + "-c", + "import urllib.request; import sys; req = urllib.request.Request('http://localhost:${APP_PORT:-8000}/healthcheck', headers={'X-Internal-Check': '${HEALTHCHECK_TOKEN}'}); sys.exit(0) if urllib.request.urlopen(req).read() == b'OK' else sys.exit(1)", + ] interval: 30s timeout: 10s retries: 3 @@ -34,13 +40,6 @@ services: - ./deploy/varnish/default.vcl:/etc/varnish/default.vcl:ro environment: - VARNISH_SIZE=256m - healthcheck: - test: [ "CMD-SHELL", "curl -fsS -H 'X-Internal-Check=${HEALTHCHECK_TOKEN}' http://localhost/healthcheck | grep -q OK" ] - interval: 30s - timeout: 5s - retries: 3 - env_file: - - .env networks: - lista-zakupow_network restart: unless-stopped