From 7821f25b61d4134825f941d4d2571513dfa7ebb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Wed, 24 Sep 2025 22:23:49 +0200 Subject: [PATCH] varnish --- .gitignore | 3 ++- docker-compose.yml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 024fa57..4e4931d 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,5 @@ db/mysql/* db/pgsql/* db/shopping.db *.swp -version.txt \ No newline at end of file +version.txt +deploy/varnish/default.vcl \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index d0d66fa..565a5fd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,9 +5,9 @@ services: #ports: # - "${APP_PORT:-8000}:8000" expose: - - "${APP_PORT}" + - "8000" healthcheck: - test: ["CMD", "python", "-c", "import urllib.request; import sys; req = urllib.request.Request('http://localhost:${APP_PORT}/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: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