Update fix
CI / backend (push) Successful in 12m24s
CI / frontend (push) Failing after 1m41s

This commit is contained in:
voltsrage
2026-08-05 21:49:23 +08:00
parent 6d6bee9cb5
commit d307b915cb
2 changed files with 13 additions and 4 deletions
+7 -2
View File
@@ -98,7 +98,11 @@ services:
# Allow guest from host.docker.internal / CI runner (dev only).
- ./infra/rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf:ro
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "ping"]
# The image sets no USER, so healthchecks run as root. Any Erlang tool creates
# $HOME/.erlang.cookie (mode 400) if it is absent — and HOME is /var/lib/rabbitmq
# for root too. A root-run check that beats the booting server to the cookie
# locks the broker out of its own file: "reading .erlang.cookie: eacces".
test: ["CMD-SHELL", "su rabbitmq -s /bin/sh -c 'rabbitmq-diagnostics -q ping'"]
interval: 10s
timeout: 5s
retries: 5
@@ -193,7 +197,8 @@ services:
volumes:
- ./infra/rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf:ro
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "ping"]
# Drops to rabbitmq for the same .erlang.cookie reason as the rabbitmq service.
test: ["CMD-SHELL", "su rabbitmq -s /bin/sh -c 'rabbitmq-diagnostics -q ping'"]
interval: 10s
timeout: 5s
retries: 5