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:
@@ -20,6 +20,7 @@ services:
|
|||||||
- INSTALLATION_ENV=docker
|
- INSTALLATION_ENV=docker
|
||||||
entrypoint: docker/entrypoints/rails.sh
|
entrypoint: docker/entrypoints/rails.sh
|
||||||
command: ['bundle', 'exec', 'rails', 's', '-p', '3000', '-b', '0.0.0.0']
|
command: ['bundle', 'exec', 'rails', 's', '-p', '3000', '-b', '0.0.0.0']
|
||||||
|
restart: always
|
||||||
|
|
||||||
sidekiq:
|
sidekiq:
|
||||||
<<: *base
|
<<: *base
|
||||||
@@ -31,6 +32,7 @@ services:
|
|||||||
- RAILS_ENV=production
|
- RAILS_ENV=production
|
||||||
- INSTALLATION_ENV=docker
|
- INSTALLATION_ENV=docker
|
||||||
command: ['bundle', 'exec', 'sidekiq', '-C', 'config/sidekiq.yml']
|
command: ['bundle', 'exec', 'sidekiq', '-C', 'config/sidekiq.yml']
|
||||||
|
restart: always
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:12
|
image: postgres:12
|
||||||
|
|||||||
Reference in New Issue
Block a user