Skip to content
This repository was archived by the owner on Apr 21, 2026. It is now read-only.

Commit d02313e

Browse files
bpamiriclaude
andcommitted
fix: Re-enable healthcheck and add rollback on update failure
Re-enables the Docker healthcheck with a 180s start_period to allow for JVM warmup. Adds failure_action: rollback to prevent container pile-up when updates fail (was defaulting to pause, causing 6/3 replicas). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4b96251 commit d02313e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

deploy/swarm/docker-compose.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ services:
1111
parallelism: 1
1212
delay: 15s
1313
order: start-first
14+
failure_action: rollback
1415
rollback_config:
1516
parallelism: 1
1617
delay: 10s
@@ -46,7 +47,11 @@ services:
4647
HEALTHCHECK_URI: "http://127.0.0.1:8888/"
4748
BOX_SERVER_JVM_ARGS: "-Xms2g -Xmx3g"
4849
healthcheck:
49-
disable: true
50+
test: ["CMD", "curl", "-f", "http://127.0.0.1:8888/"]
51+
interval: 30s
52+
timeout: 10s
53+
retries: 3
54+
start_period: 180s
5055
networks:
5156
- proxy
5257
volumes:

0 commit comments

Comments
 (0)