Skip to content

Commit

Permalink
Bug: Added Sidekiq to production docker compose (#555) (#557)
Browse files Browse the repository at this point in the history
* Sidekiq service was missing from the production docker compose file. Added it.
  • Loading branch information
sony-mathew committed Feb 24, 2020
1 parent 55b0014 commit 4d5e7b4
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions docker-compose.production.yaml
Expand Up @@ -11,6 +11,7 @@ services:
RAILS_ENV: 'production'
RAILS_SERVE_STATIC_FILES: 'true'
image: chatwoot:latest
env_file: .env ## Change this file for customized env variables

rails:
<<: *base
Expand All @@ -20,12 +21,22 @@ services:
- redis
ports:
- 3000:3000
env_file: .env ## Change this file for customized env variables
environment:
- NODE_ENV=production
- RAILS_ENV=production
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:
image: postgres:11.6
Expand Down

0 comments on commit 4d5e7b4

Please sign in to comment.