-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
121 lines (108 loc) · 2.86 KB
/
Copy pathdocker-compose.yml
File metadata and controls
121 lines (108 loc) · 2.86 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
version: '3.8'
services:
telegram-bot:
build: ./services/telegram-bot
restart: always
env_file:
- ./config/.env
networks:
- tradewise-net
mops-crawler:
build: ./services/mops-crawler
restart: always
networks:
- tradewise-net
healthcheck:
test: ["CMD-SHELL", "python -c \"import http.client; conn = http.client.HTTPConnection('localhost', 80); conn.request('GET', '/health'); response = conn.getresponse(); assert response.status == 200\""]
interval: 10s
timeout: 6s
retries: 3
volumes:
- ./services/mops-crawler/src:/app # Bind mount for live development. Remove this for production.
report-harvester:
build: ./services/report-harvester
restart: always
networks:
- tradewise-net
depends_on:
database-api:
condition: service_healthy
mops-crawler:
condition: service_healthy
volumes:
- ./services/report-harvester/src:/app # Bind mount for live development. Remove this for production.
fugle-market-data:
build: ./services/fugle-market-data
restart: always
env_file:
- ./config/.env
networks:
- tradewise-net
fugle-trading:
build: ./services/fugle-trading
restart: always
env_file:
- ./config/.env
environment:
- FUGLE_TRADING_CONFIG=/app/fugle-trading/config.simulation.ini
volumes:
- ./config/fugle-trading:/app/fugle-trading
networks:
- tradewise-net
order-manager:
build: ./services/order-manager
restart: always
networks:
- tradewise-net
insight-engine:
build: ./services/insight-engine
restart: always
networks:
- tradewise-net
logging:
build: ./services/logging
restart: always
networks:
- tradewise-net
mongodb:
image: mongo
restart: always
env_file:
- ./config/.env
networks:
- tradewise-net
volumes:
- db-data:/data/db
# mongo-express service is used for debugging purposes only.
# Please comment out or remove this service in production environments.
mongodb-express:
image: mongo-express:latest
env_file:
- ./config/.env
depends_on:
- mongodb
ports:
- "8081:8081"
networks:
- tradewise-net
database-api:
build: ./services/mongodb-api
restart: always
env_file:
- ./config/.env
networks:
- tradewise-net
depends_on:
- mongodb
healthcheck:
test: ["CMD-SHELL", "python -c \"import http.client; conn = http.client.HTTPConnection('localhost', 80); conn.request('GET', '/health'); response = conn.getresponse(); assert response.status == 200\""]
interval: 10s
timeout: 6s
retries: 3
volumes:
- ./services/mongodb-api/src:/app # Bind mount for live development. Remove this for production.
networks:
tradewise-net:
driver: bridge
volumes:
db-data: