-
Notifications
You must be signed in to change notification settings - Fork 53
/
docker-compose.yml
88 lines (83 loc) · 2.12 KB
/
docker-compose.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
version: '3'
services:
db:
image: postgres:latest
restart: always
command: "-c max_connections=512"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
volumes:
- db_data:/var/lib/postgresql/data
pgbouncer:
image: edoburu/pgbouncer:latest
environment:
- DB_HOST=db
- DB_PORT=5432
- DB_USER=postgres
- DB_PASSWORD=postgres
- AUTH_TYPE=scram-sha-256
- DEFAULT_POOL_SIZE=512
- MAX_CLIENT_CONN=10000
- POOL_MODE=transaction
rabbitmq:
image: rabbitmq:3-management-alpine
restart: always
volumes:
- mq_data:/var/lib/rabbitmq/
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 30s
timeout: 60s
retries: 5
web:
build: .
restart: always
image: ghcr.io/bitthebyte/monitorizer:main
command: /webserver-entrypoint.sh
environment:
POSTGRES_HOST: pgbouncer
CELERY_BROKER_URL: 'amqp://guest:guest@rabbitmq:5672'
ports:
- "8000:8000"
depends_on:
- db
- rabbitmq
beat_worker:
restart: always
image: ghcr.io/bitthebyte/monitorizer:main
command: celery -A monitorizer.server beat -l info
depends_on:
- db
- rabbitmq
environment:
CELERY_BROKER_URL: 'amqp://guest:guest@rabbitmq:5672'
POSTGRES_HOST: pgbouncer
report_worker:
restart: always
image: ghcr.io/bitthebyte/monitorizer:main
command: celery -A monitorizer.server worker -Q reports -l info
depends_on:
- db
- rabbitmq
environment:
CELERY_BROKER_URL: 'amqp://guest:guest@rabbitmq:5672'
POSTGRES_HOST: pgbouncer
job_worker:
restart: always
privileged: true
image: ghcr.io/bitthebyte/monitorizer:main
command: celery -A monitorizer.server worker -Q default -l info
depends_on:
- db
- rabbitmq
environment:
CELERY_BROKER_URL: 'amqp://guest:guest@rabbitmq:5672'
POSTGRES_HOST: pgbouncer
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /home/.monitorizer:/home/.monitorizer:shared
volumes:
db_data:
mq_data: