-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
100 lines (100 loc) · 2.5 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
89
90
91
92
93
94
95
96
97
98
99
100
version: "3.8"
volumes:
vtt:
networks:
net_vtt:
services:
sign_in:
build: .
volumes:
- vtt:/vk-to-tgm/tgm_sessions/
- ./.env:/vk-to-tgm/.env
profiles:
- sign_in
command: python -m app.sign_in
rabbitmq:
image: rabbitmq:3.10.5-alpine
networks:
- net_vtt
cb-receiver:
build: .
restart: always
environment:
- CELERY_BROKER_URL=amqp://guest:guest@rabbitmq:5672//
volumes:
- vtt:/vk-to-tgm/tgm_sessions/
- ./.env:/vk-to-tgm/.env
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --log-config app/logging_config.yaml
depends_on:
- rabbitmq
networks:
- net_vtt
ports:
- "127.0.0.1:8000:8000"
tgm-bot:
build: .
restart: always
environment:
- CELERY_BROKER_URL=amqp://guest:guest@rabbitmq:5672//
volumes:
- vtt:/vk-to-tgm/tgm_sessions/
- ./.env:/vk-to-tgm/.env
command: python3 -m app.bot.main
depends_on:
- rabbitmq
networks:
- net_vtt
worker-wall:
build: .
restart: always
environment:
- CELERY_BROKER_URL=amqp://guest:guest@rabbitmq:5672//
volumes:
- vtt:/vk-to-tgm/tgm_sessions/
- ./.env:/vk-to-tgm/.env
command: celery -A app.celery_worker worker -n vtt-worker-wall@%%h -Q vtt-wall --pool=solo --loglevel=INFO
depends_on:
- rabbitmq
networks:
- net_vtt
worker-pl:
build: .
restart: always
environment:
- CELERY_BROKER_URL=amqp://guest:guest@rabbitmq:5672//
volumes:
- vtt:/vk-to-tgm/tgm_sessions/
- ./.env:/vk-to-tgm/.env
command: celery -A app.celery_worker worker -n vtt-worker-pl@%%h -Q vtt-playlist --pool=solo --loglevel=INFO
depends_on:
- rabbitmq
networks:
- net_vtt
profiles:
- with_pl
worker-dbc:
build: .
restart: always
environment:
- CELERY_BROKER_URL=amqp://guest:guest@rabbitmq:5672//
volumes:
- vtt:/vk-to-tgm/tgm_sessions/
- ./.env:/vk-to-tgm/.env
command: celery -A app.celery_worker worker -n vtt-worker-dbc@%%h -Q celery --pool=solo --loglevel=INFO
depends_on:
- rabbitmq
networks:
- net_vtt
dbc-scheduler:
build: .
restart: always
environment:
- CELERY_BROKER_URL=amqp://guest:guest@rabbitmq:5672//
volumes:
- vtt:/vk-to-tgm/tgm_sessions/
- ./.env:/vk-to-tgm/.env
command: celery -A app.celery_worker beat --loglevel=INFO --logfile=logs/vtt-dbc-scheduler.log
depends_on:
- rabbitmq
networks:
- net_vtt