From 88997a7527b0f575fc17c3176c1735e5e3cae160 Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 8 Feb 2026 16:19:28 +0000 Subject: [PATCH] updated docker-compose --- docker-compose.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 423ec21..a130140 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,10 +1,17 @@ version: '3.8' services: - webserver: - build: ./backend - ports: - - "5000:5000" + hottub-webclient: + image: hottub-webclient:latest + container_name: hottub-webclient + entrypoint: python3 + command: ["backend/main.py"] volumes: - - ./frontend:/frontend - environment: - - PYTHONUNBUFFERED=1 \ No newline at end of file + - /path/to/hottub-webclient:/app + restart: unless-stopped + working_dir: /app + healthcheck: + test: ["CMD-SHELL", "curl -s -o /dev/null -w '%{http_code}' http://127.0.0.1:5000/ | grep -q 200"] + interval: 300s + timeout: 5s + retries: 3 + start_period: 1s \ No newline at end of file