Bug: Added Sidekiq to production docker compose (#555) (#557)

* Sidekiq service was missing from the production docker compose file. Added it.
This commit is contained in:
Sony Mathew 2020-02-25 01:23:29 +05:30 committed by GitHub
parent 55b001435b
commit 4d5e7b4adf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,6 +11,7 @@ services:
RAILS_ENV: 'production' RAILS_ENV: 'production'
RAILS_SERVE_STATIC_FILES: 'true' RAILS_SERVE_STATIC_FILES: 'true'
image: chatwoot:latest image: chatwoot:latest
env_file: .env ## Change this file for customized env variables
rails: rails:
<<: *base <<: *base
@ -20,12 +21,22 @@ services:
- redis - redis
ports: ports:
- 3000:3000 - 3000:3000
env_file: .env ## Change this file for customized env variables
environment: environment:
- NODE_ENV=production - NODE_ENV=production
- RAILS_ENV=production - RAILS_ENV=production
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']
sidekiq:
<<: *base
image: chatwoot:latest
depends_on:
- postgres
- redis
environment:
- NODE_ENV=production
- RAILS_ENV=production
command: ['bundle', 'exec', 'sidekiq', '-C', 'config/sidekiq.yml']
postgres: postgres:
image: postgres:11.6 image: postgres:11.6