From 984966f3afc213a93f7244919853e17a68072d7c Mon Sep 17 00:00:00 2001 From: SimeonPursiainen Date: Tue, 1 Jul 2025 20:56:44 +0300 Subject: [PATCH] added replica in case of a failure --- stack-compose.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stack-compose.yml b/stack-compose.yml index 744ace3..6f90d05 100644 --- a/stack-compose.yml +++ b/stack-compose.yml @@ -4,8 +4,13 @@ services: frontend: image: registry.gitlab.com/sahkoinsinoorikilta/vtmk/web2.0-frontend:prod deploy: - replicas: 1 + replicas: 2 # TEMP 2 for testing update_config: order: start-first ports: - 3000:3000 + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:3000"] + interval: 10s + timeout: 3s + retries: 3