-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
36 lines (33 loc) · 898 Bytes
/
Copy pathdocker-compose.test.yml
File metadata and controls
36 lines (33 loc) · 898 Bytes
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
version: '3.8'
services:
mt5-docker-api:
image: mt5-docker-api:test
container_name: mt5-docker-api-test
restart: unless-stopped
ports:
- "3000:3000" # VNC Web Access
- "8000:8000" # REST API
- "8001:8001" # Python MT5 API
volumes:
- mt5_test_data:/root/.wine/drive_c/Program Files/MetaTrader 5
- ./logs:/app/logs
environment:
- MT5_LOGIN=${MT5_LOGIN:-demo}
- MT5_PASSWORD=${MT5_PASSWORD:-demo}
- MT5_SERVER=${MT5_SERVER:-MetaQuotes-Demo}
- API_KEY=${API_KEY:-test-api-key}
- VNC_PASSWORD=${VNC_PASSWORD:-vnc123}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
networks:
- mt5-test-network
volumes:
mt5_test_data:
driver: local
networks:
mt5-test-network:
driver: bridge