From ee877be74cede9650d5951c234b773f47d540fe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Thu, 28 Aug 2025 13:58:03 +0200 Subject: [PATCH] drobne --- docker-compose.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 4223dee..aac46ca 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,21 +1,17 @@ -version: '3.8' - services: app: - build: - container_name: zbiorka-app - context: . - dockerfile: Dockerfile + build: . + container_name: zbiorka-app ports: - - "${APP_PORT:-8080}:${APP_PORT:-8080}" + - "${APP_PORT:-8000}:8000" healthcheck: 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 start_period: 10s - volumes: - - ./instance:/app/instance - restart: unless-stopped env_file: - .env + volumes: + - ./instance:/app/instance + restart: unless-stopped \ No newline at end of file