blob: 95a5c639f9610e11211be61f8b94d42c13cbbe89 (
plain)
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
|
services:
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
postgres:
image: postgres:16-alpine
ports:
- "5432:5432"
environment:
POSTGRES_USER: trading
POSTGRES_PASSWORD: trading
POSTGRES_DB: trading
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-LINE", "pg_isready", "-U", "trading"]
interval: 5s
timeout: 3s
retries: 5
data-collector:
build:
context: .
dockerfile: services/data-collector/Dockerfile
env_file: .env
depends_on:
redis:
condition: service_healthy
postgres:
condition: service_healthy
restart: unless-stopped
strategy-engine:
build:
context: .
dockerfile: services/strategy-engine/Dockerfile
env_file: .env
depends_on:
redis:
condition: service_healthy
postgres:
condition: service_healthy
restart: unless-stopped
order-executor:
build:
context: .
dockerfile: services/order-executor/Dockerfile
env_file: .env
depends_on:
redis:
condition: service_healthy
postgres:
condition: service_healthy
restart: unless-stopped
portfolio-manager:
build:
context: .
dockerfile: services/portfolio-manager/Dockerfile
env_file: .env
depends_on:
redis:
condition: service_healthy
postgres:
condition: service_healthy
restart: unless-stopped
prometheus:
image: prom/prometheus:latest
profiles: ["monitoring"]
ports:
- "9090:9090"
volumes:
- ./monitoring/prometheus.yml:/etc/prometheus/prometheus.yml
depends_on:
- data-collector
- strategy-engine
- order-executor
- portfolio-manager
grafana:
image: grafana/grafana:latest
profiles: ["monitoring"]
ports:
- "3000:3000"
depends_on:
- prometheus
volumes:
redis_data:
postgres_data:
|