forked from mastodon/mastodon
/
docker-compose.override.30-options.yml
45 lines (42 loc) · 1.16 KB
/
docker-compose.override.30-options.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
version: '2.1'
services:
db:
# See <https://stackoverflow.com/a/41912295/6482733> and
# <https://lets.postgresql.jp/documents/tutorial/troubleshoot/1>.
command: postgres -c autovacuum_vacuum_cost_limit=200
sidekiq:
# Sidekiq threads without `push` queue.
build: .
image: tootsuite/mastodon:edge
restart: always
env_file: .env.production
environment:
# Use the same value as the number of sidekiq threads.
- "DB_POOL=8"
command: bundle exec sidekiq -c 8 -q default -q mailers -q pull -q scheduler
depends_on:
- db
- redis
networks:
- external_network
- internal_network
volumes:
- ./public/system:/mastodon/public/system
sidekiq-push:
# Sidekiq threads only with `push` queue.
build: .
image: tootsuite/mastodon:edge
restart: always
env_file: .env.production
environment:
# Use the same value as the number of sidekiq threads.
- "DB_POOL=4"
command: bundle exec sidekiq -c 4 -q push
depends_on:
- db
- redis
networks:
- external_network
- internal_network
volumes:
- ./public/system:/mastodon/public/system