/
docker-compose.yml
69 lines (63 loc) · 1.68 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
version: '3'
services:
db:
image: postgres:latest
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
volumes:
- db_data:/var/lib/postgresql/data
redis:
image: redis:latest
restart: always
web:
build: .
restart: always
image: ghcr.io/bitthebyte/monitorizer:main
command: /webserver-entrypoint.sh
environment:
POSTGRES_HOST: db
CELERY_BROKER_URL: 'redis://redis:6379/0'
CELERY_RESULT_BACKEND: 'redis://redis:6379/0'
ports:
- "8000:8000"
depends_on:
- db
beat_worker:
restart: always
image: ghcr.io/bitthebyte/monitorizer:main
command: celery -A monitorizer.server beat -l info
depends_on:
- db
environment:
CELERY_BROKER_URL: 'redis://redis:6379/0'
CELERY_RESULT_BACKEND: 'redis://redis:6379/0'
POSTGRES_HOST: db
report_worker:
restart: always
image: ghcr.io/bitthebyte/monitorizer:main
command: celery -A monitorizer.server worker -Q reports -l info
depends_on:
- db
environment:
CELERY_BROKER_URL: 'redis://redis:6379/0'
CELERY_RESULT_BACKEND: 'redis://redis:6379/0'
POSTGRES_HOST: db
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
environment:
CELERY_BROKER_URL: 'redis://redis:6379/0'
CELERY_RESULT_BACKEND: 'redis://redis:6379/0'
POSTGRES_HOST: db
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /home/.monitorizer:/home/.monitorizer:shared
volumes:
db_data: