Feature: Add Sidekiq docker (#443)
* update db:schema due to migration * reduce default concurrency for redis connection limit * Allow auto update packages in the development mode without building image * add sidekiq support to docker-compose * Pass sidekiq cofig file * passed the env file in base image rather than separately in rails, web packer and sidekiq in docker-compose * removed un-necessary changes in schema * changed concurrency to finer values * removed default size set in sidekiq redis config * Added the sidekiq config option in Procfile.dev Co-authored-by: Sony Mathew <ynos1234@gmail.com>
This commit is contained in:
committed by
Sony Mathew
parent
8cf135f2db
commit
6325acd183
@@ -13,6 +13,7 @@ services:
|
||||
tty: true
|
||||
stdin_open: true
|
||||
image: chatwoot:development
|
||||
env_file: .env
|
||||
|
||||
rails:
|
||||
<<: *base
|
||||
@@ -25,14 +26,15 @@ services:
|
||||
- node_modules:/app/node_modules
|
||||
- packs:/app/public/packs
|
||||
- cache:/app/tmp/cache
|
||||
- bundle:/usr/local/bundle
|
||||
depends_on:
|
||||
- postgres
|
||||
- redis
|
||||
- webpack
|
||||
- mailhog
|
||||
- sidekiq
|
||||
ports:
|
||||
- 3000:3000
|
||||
env_file: .env
|
||||
environment:
|
||||
- WEBPACKER_DEV_SERVER_HOST=webpack
|
||||
- NODE_ENV=development
|
||||
@@ -40,6 +42,24 @@ services:
|
||||
entrypoint: docker/entrypoints/rails.sh
|
||||
command: ["bundle", "exec", "rails", "s", "-p", "3000", "-b", "0.0.0.0"]
|
||||
|
||||
sidekiq:
|
||||
<<: *base
|
||||
image: chatwoot-rails:development
|
||||
volumes:
|
||||
- ./:/app:delegated
|
||||
- node_modules:/app/node_modules
|
||||
- packs:/app/public/packs
|
||||
- cache:/app/tmp/cache
|
||||
- bundle:/usr/local/bundle
|
||||
depends_on:
|
||||
- postgres
|
||||
- redis
|
||||
- mailhog
|
||||
environment:
|
||||
- NODE_ENV=development
|
||||
- RAILS_ENV=development
|
||||
command: ["bundle", "exec", "sidekiq", "-C", "config/sidekiq.yml"]
|
||||
|
||||
webpack:
|
||||
<<: *base
|
||||
build:
|
||||
@@ -51,9 +71,9 @@ services:
|
||||
- node_modules:/app/node_modules # Node modules shared across containers
|
||||
- packs:/app/public/packs
|
||||
- cache:/app/tmp/cache
|
||||
- bundle:/usr/local/bundle
|
||||
ports:
|
||||
- "3035" # Webpack dev server
|
||||
env_file: .env
|
||||
environment:
|
||||
- WEBPACKER_DEV_SERVER_HOST=0.0.0.0
|
||||
- NODE_ENV=development
|
||||
@@ -95,3 +115,4 @@ volumes:
|
||||
packs:
|
||||
node_modules:
|
||||
cache:
|
||||
bundle:
|
||||
|
||||
Reference in New Issue
Block a user