-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
96 lines (88 loc) · 2.52 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
version: '3'
services:
rabbitmq:
image: rabbitmq:3-management
container_name: rabbitmq
restart: unless-stopped
hostname: "node-dev"
environment:
RABBITMQ_ERLANG_COOKIE: ${RABBITMQ_ERLANG_COOKIE}
RABBITMQ_DEFAULT_USER: ${RABBITMQ_DEFAULT_USER}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_DEFAULT_PASS}
ports:
- "${RABBITMQ_AMQP_PORT}:5672"
- "${RABBITMQ_WEBUI_PORT}:15672"
redis:
image: redis:latest
container_name: redis_coord
restart: unless-stopped
command: redis-server --requirepass ${REDIS_PASSWORD}
ports:
- "${REDIS_PORT}:6379"
bot:
build:
dockerfile: Dockerfile
context: .
restart: unless-stopped
network_mode: host
depends_on:
- rabbitmq
- redis
env_file: bot.dev.env
command: poetry run python3 bot.py
csmoney_parser:
build:
dockerfile: Dockerfile
context: .
restart: unless-stopped
network_mode: host
depends_on:
- rabbitmq
- redis
env_file: csmoney_parser.dev.env
command: poetry run python3 csmoney_parser.py
steam_parser:
build:
dockerfile: Dockerfile
context: .
restart: unless-stopped
network_mode: host
depends_on:
- rabbitmq
- redis
env_file: steam_parser.dev.env
command: poetry run python3 steam_parser.py
worker:
build:
dockerfile: Dockerfile
context: .
restart: unless-stopped
network_mode: host
depends_on:
- rabbitmq
- redis
env_file: worker.dev.env
command: poetry run python3 worker.py
create_csmoney_tasks:
build:
dockerfile: Dockerfile
context: .
network_mode: host
volumes:
- ./utils:/root/fw3/utils
env_file: utils/create_csmoney_tasks.env
command: poetry run python3 utils/create_csmoney_tasks.py
depends_on:
- redis
upload_proxies:
build:
dockerfile: Dockerfile
context: .
network_mode: host
volumes:
- ./utils:/root/fw3/utils
- ./utils_mount:/root/fw3/utils_mount
env_file: utils/upload_proxies.env
command: poetry run python3 utils/upload_proxies.py
depends_on:
- redis