-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
57 lines (54 loc) · 1.41 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
version: '2.1'
services:
bot:
build:
context: ./
args:
FOLDER: ""
environment:
TG_API_KEY: # API key of the bot
SENTRY_DSN:
URL_PATH:
URL_HOSTNAME:
RABBITMQ_HOST: # "rabbit"
RABBITMQ_USER: # "rabbit"
RABBITMQ_PASS: # "1234secure"
RABBITMQ_VHOST: # app01
CELERY_WORKER: "no"
HEALTHCHECK_URL: "/healthcheck"
worker:
build:
context: ./
args:
FOLDER: ""
working_dir: /app/
restart: "unless-stopped"
environment:
TG_API_KEY: # API key of the bot
SENTRY_DSN:
RABBITMQ_HOST: # "rabbit"
RABBITMQ_USER: # "rabbit"
RABBITMQ_PASS: # "1234secure"
RABBITMQ_VHOST: # app01
CELERY_WORKER: "yes"
command: "celery worker -A bass_boost.celery.worker --loglevel INFO"
healthcheck:
test: ["CMD", "python", "healthcheck.py"]
# test: ["CMD", "celery", "inspect", "ping", "-A", "tasks.add", "-d", "celery@$HOSTNAME"]
beat:
build:
context: ./
args:
FOLDER: ""
working_dir: /app/
restart: "unless-stopped"
environment:
TG_API_KEY: # API key of the bot
SENTRY_DSN:
RABBITMQ_HOST: # "rabbit"
RABBITMQ_USER: # "rabbit"
RABBITMQ_PASS: # "1234secure"
RABBITMQ_VHOST: # app01
CELERY_WORKER: "yes"
HEALTHCHECK_URL: "/test"
command: "celery beat -A bass_boost.celery.worker --loglevel INFO"