Skip to content

Commit e994cd3

Browse files
committed
fix: solve sidekiq healthcheck
1 parent 5c594c3 commit e994cd3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docker/docker-compose.production.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,12 @@ services:
183183
# Meilisearch (self-hosted — same Docker network)
184184
MEILISEARCH_URL: 'http://meilisearch:7700'
185185
MEILI_MASTER_KEY: '${MEILI_MASTER_KEY}'
186+
healthcheck:
187+
test: ["CMD-SHELL", "pgrep -f 'sidekiq' > /dev/null || exit 1"]
188+
interval: 30s
189+
timeout: 5s
190+
retries: 3
191+
start_period: 30s
186192
depends_on:
187193
postgres:
188194
condition: service_healthy

0 commit comments

Comments
 (0)