-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
83 lines (76 loc) · 1.69 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
version: "3.7"
services:
venv-init:
image: python:3.9-alpine
container_name: kgbtrbot-venv-init
networks:
- net
volumes:
- .:/app/
command: python -m venv .venv
publisher:
image: kgbtrbot:publisher
container_name: kgbtrbot-publisher
build:
context: ./.docker/python
target: development-stage
networks:
- net
depends_on:
- rabbitmq
volumes:
- ./app/Publisher:/app/
- ./app/Common:/app/Common/
- ./app/Tasks:/app/Tasks/
- ./app/Utils:/app/Utils/
- ./praw.ini:/app/praw.ini
command: python main.py
consumer:
image: kgbtrbot:consumer
container_name: kgbtrbot-consumer
build:
context: ./.docker/python
target: development-stage
depends_on:
- rabbitmq
networks:
- net
volumes:
- ./app/Consumer:/app/
- ./app/Common:/app/Common/
- ./app/Tasks:/app/Tasks/
- ./app/Utils:/app/Utils/
- ./praw.ini:/app/praw.ini
command: python main.py
2fa:
image: kgbtrbot:authy
container_name: kgbtrbot-2fa
build:
context: ./.docker/python
target: development-stage
networks:
- net
volumes:
- ./app/2FA:/app
command:
- python
- main.py
rabbitmq:
image: rabbitmq:management-alpine
container_name: kgbtrbot-rabbitmq
volumes:
- ./.docker/rabbitmq/logs/:/var/log/rabbitmq/
- ./.docker/rabbitmq/config:/etc/rabbitmq/
- rabbitmq-data:/var/lib/rabbitmq/
environment:
RABBITMQ_ERLANG_COOKIE: ${RABBITMQ_ERLANG_COOKIE}
networks:
- net
ports:
- 5672:5672
- 15672:15672
networks:
net:
driver: bridge
volumes:
rabbitmq-data: