Browse Source

Fix healthcheck for workers

pull/89/head
Angel Aviel Domaoan 4 years ago
parent
commit
57b82ce4be
  1. 11
      docker-compose.production.yml

11
docker-compose.production.yml

@ -1,4 +1,3 @@
version: "2"
services:
data:
image: busybox
@ -73,6 +72,11 @@ services:
- RAILS_LOG_TO_STDOUT=true
- PORT=80
- SIDEKIQ_QUEUES=-q default,2 -q mailers,1 -q active_storage_analysis,1 -q active_storage_purge,1
healthcheck:
test: ["CMD", "curl", "-f", "${WORKER_HEALTHCHECK_URL}"]
interval: 30s
retries: 3
start_period: 30s
worker_solr:
restart: ${WEB_RESTART_MODE}
image: tenshiamd/ruby:2.7-alpine
@ -93,3 +97,8 @@ services:
- RAILS_LOG_TO_STDOUT=true
- PORT=80
- SIDEKIQ_QUEUES=-q sunspot_index,2
healthcheck:
test: ["CMD", "curl", "-f", "${WORKER_HEALTHCHECK_URL}"]
interval: 30s
retries: 3
start_period: 30s

Loading…
Cancel
Save