diff --git a/docker-compose.production.yaml b/docker-compose.production.yaml index a45dd77a6..e0530b28e 100644 --- a/docker-compose.production.yaml +++ b/docker-compose.production.yaml @@ -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 @@ -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