about summary refs log tree commit diff
path: root/docker-compose.yml
diff options
context:
space:
mode:
authorSu Yang <soulteary@users.noreply.github.com>2022-01-27 01:08:49 +0800
committerGitHub <noreply@github.com>2022-01-26 18:08:49 +0100
commit10188c7db77cd90382d8c7476f0c3f97f92fc4be (patch)
treed76bbae48410a412c717d9deb230d5a37c6320d4 /docker-compose.yml
parent6505b39e5d28abf938bd5f593eda2988d322887b (diff)
Add healthcheck for sidekiq (#17365)
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index c1c4e5ac7..01fe320a4 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -94,6 +94,9 @@ services:
       - internal_network
     volumes:
       - ./public/system:/mastodon/public/system
+    healthcheck:
+      test: ["CMD-SHELL", "ps aux | grep '[s]idekiq\ 6' || false"]
+
 ## Uncomment to enable federation with tor instances along with adding the following ENV variables
 ## http_proxy=http://privoxy:8118
 ## ALLOW_ACCESS_TO_HIDDEN_SERVICE=true