From 499408ea6f475b560b91408a78426e7a7a5421a0 Mon Sep 17 00:00:00 2001 From: Vishnu Narayanan Date: Thu, 18 Jul 2024 18:33:03 +0530 Subject: [PATCH] fix: add restart policy for rails/sidekiq containers (#9797) - Add `restart:always` policy for rails and sidekiq containers in the production compose file Fixes #9501 Fixes https://linear.app/chatwoot/issue/PR-1099/missing-restart-always-at-docker-compose-file --- docker-compose.production.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-compose.production.yaml b/docker-compose.production.yaml index d2f5b435c..c1406b02b 100644 --- a/docker-compose.production.yaml +++ b/docker-compose.production.yaml @@ -20,6 +20,7 @@ services: - INSTALLATION_ENV=docker entrypoint: docker/entrypoints/rails.sh command: ['bundle', 'exec', 'rails', 's', '-p', '3000', '-b', '0.0.0.0'] + restart: always sidekiq: <<: *base @@ -31,6 +32,7 @@ services: - RAILS_ENV=production - INSTALLATION_ENV=docker command: ['bundle', 'exec', 'sidekiq', '-C', 'config/sidekiq.yml'] + restart: always postgres: image: postgres:12