added replica in case of a failure

This commit is contained in:
SimeonPursiainen
2025-07-01 20:56:44 +03:00
parent fe015c3bce
commit 984966f3af
+6 -1
View File
@@ -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