-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
147 lines (138 loc) · 3.72 KB
/
docker-compose.yml
File metadata and controls
147 lines (138 loc) · 3.72 KB
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- "5433:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
redis:
image: redis:7-alpine
ports:
- "${REDIS_PORT}:${REDIS_PORT}"
volumes:
- redis-data:/data
websocket_bot:
build:
context: .
dockerfile: bots/websocket_bot/Dockerfile
depends_on:
- postgres
- redis
environment:
BOT_AUTH_TOKEN: ${WEBSOCKET_BOT_AUTH_TOKEN}
DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}
REDIS_HOST: ${REDIS_HOST}
REDIS_PORT: ${REDIS_PORT}
REDIS_DB: ${REDIS_DB}
volumes:
- ./bots/websocket_bot:/app
- ./bots/utils:/app/utils
- ./bots/config:/app/config
db_bot:
build:
context: .
dockerfile: bots/db/Dockerfile
depends_on:
- postgres
- redis
ports:
- "8001:8001"
environment:
BOT_AUTH_TOKEN: ${DB_BOT_AUTH_TOKEN}
DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}
REDIS_HOST: ${REDIS_HOST}
REDIS_PORT: ${REDIS_PORT}
REDIS_DB: ${REDIS_DB}
DB_HOST: postgres
DB_PORT: 5432
DB_DATABASE: ${POSTGRES_DB}
DB_USER: ${POSTGRES_USER}
DB_PASSWORD: ${POSTGRES_PASSWORD}
DB_TRADING_SCHEMA: ${DB_TRADING_SCHEMA}
volumes:
- ./bots/db:/app
- ./bots/utils:/app/utils
- ./bots/config:/app/config
preprocessor_bot:
build:
context: .
dockerfile: bots/preprocessor/Dockerfile
depends_on:
- postgres
- redis
environment:
CLEAR_WINDOWS_ON_START: 1
WINDOW_TTL_SECONDS: 21600
BOT_AUTH_TOKEN: ${PREPROCESSOR_BOT_AUTH_TOKEN}
DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}
REDIS_HOST: ${REDIS_HOST}
REDIS_PORT: ${REDIS_PORT}
REDIS_DB: ${REDIS_DB}
volumes:
- ./bots/preprocessor:/app
- ./bots/utils:/app/utils
- ./bots/config:/app/config
macro_metrics:
build:
context: .
dockerfile: bots/macro_metrics/Dockerfile
depends_on:
- redis
environment:
BOT_AUTH_TOKEN: ${MACRO_SERVICES_BOT_AUTH_TOKEN}
REDIS_HOST: ${REDIS_HOST}
REDIS_PORT: ${REDIS_PORT}
REDIS_DB: ${REDIS_DB}
volumes:
- ./bots/macro_metrics:/app
- ./bots/utils:/app/utils
- ./bots/config:/app/config
trigger_bot:
build:
context: .
dockerfile: bots/trigger/Dockerfile
depends_on:
- postgres
- redis
- db_bot
environment:
FORCE_SIGNAL: 0
LOG_CONF: 1
BOT_AUTH_TOKEN: ${TRIGGER_BOT_AUTH_TOKEN}
DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}
DB_HOST: postgres
DB_BOT_BASE_URL: http://db_bot:8001
DB_PORT: 5432
DB_DATABASE: ${POSTGRES_DB}
DB_USER: ${POSTGRES_USER}
DB_PASSWORD: ${POSTGRES_PASSWORD}
DB_TRADING_SCHEMA: ${DB_TRADING_SCHEMA}
REDIS_HOST: ${REDIS_HOST}
REDIS_PORT: ${REDIS_PORT}
REDIS_DB: ${REDIS_DB}
volumes:
- ./bots/trigger:/app
- ./bots/utils:/app/utils
- ./bots/config:/app/config
tradar_radar:
build:
context: .
dockerfile: bots/tradarRadar/Dockerfile
depends_on:
- redis
environment:
BOT_AUTH_TOKEN: ${TRADAR_RADAR_AUTH_TOKEN}
REDIS_HOST: redis
REDIS_PORT: ${REDIS_PORT}
REDIS_DB: ${REDIS_DB}
volumes:
- ./bots/tradarRadar:/app
- ./bots/utils:/app/utils
- ./bots/config:/app/config
volumes:
postgres-data:
redis-data: