Skip to content

Commit 4fa2e1a

Browse files
committed
Add healthcheck for sidekiq
1 parent 7afae45 commit 4fa2e1a

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

docker-compose-prod.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ services:
7171
container_name: ${PREFIX}-sidekiq
7272
image: ${PREFIX}-app
7373
restart: always
74+
healthcheck:
75+
test: bundle exec sidekiqmon | grep $(hostname)
7476
depends_on:
7577
- app
7678
- db

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ services:
6666
container_name: ${PREFIX}-sidekiq
6767
image: ${PREFIX}-app
6868
restart: unless-stopped
69+
healthcheck:
70+
test: bundle exec sidekiqmon | grep $(hostname)
6971
depends_on:
7072
- app
7173
- db

0 commit comments

Comments
 (0)