Adding Sidekiq for background processing (firstly just of mailers)
This commit is contained in:
parent
a08e724476
commit
42dcb0d4cb
6 changed files with 46 additions and 2 deletions
|
@ -4,8 +4,11 @@ services:
|
|||
image: postgres
|
||||
redis:
|
||||
image: redis
|
||||
web:
|
||||
app:
|
||||
build: .
|
||||
env_file: .env.production
|
||||
web:
|
||||
extends: app
|
||||
command: bundle exec rails s -p 3000 -b '0.0.0.0'
|
||||
ports:
|
||||
- "3000:3000"
|
||||
|
@ -15,4 +18,11 @@ services:
|
|||
volumes:
|
||||
- ./public/assets:/mastodon/public/assets
|
||||
- ./public/system:/mastodon/public/system
|
||||
env_file: .env.production
|
||||
sidekiq:
|
||||
extends: app
|
||||
command: bundle exec sidekiq -q default -q mailers
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
volumes:
|
||||
- ./public/system:/mastodon/public/system
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue