]> cat aescling's git repositories - mastodon.git/commitdiff
Add healthcheck for sidekiq (#17365)
authorSu Yang <soulteary@users.noreply.github.com>
Wed, 26 Jan 2022 17:08:49 +0000 (01:08 +0800)
committerGitHub <noreply@github.com>
Wed, 26 Jan 2022 17:08:49 +0000 (18:08 +0100)
docker-compose.yml

index c1c4e5ac705decce5de90045884b420e5b23c19e..01fe320a48f70cbc4838f5f36b106c1cbe36ead6 100644 (file)
@@ -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