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
This commit is contained in:
Vishnu Narayanan
2024-07-18 18:33:03 +05:30
committed by GitHub
parent dc245814fe
commit 499408ea6f

View File

@@ -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