-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.multi.yaml
More file actions
64 lines (62 loc) · 1.78 KB
/
Copy pathdocker-compose.multi.yaml
File metadata and controls
64 lines (62 loc) · 1.78 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
# Multi-instance FutuOpenD deployment.
# Run two accounts side-by-side with separate configs and ports.
#
# Usage:
# mkdir -p secrets-a secrets-b
# cp FutuOpenD.xml.template secrets-a/FutuOpenD.xml
# cp FutuOpenD.xml.template secrets-b/FutuOpenD.xml
# # edit both configs with different accounts
# docker compose -f docker-compose.multi.yaml up -d
#
services:
futuopend-a:
image: ${FUTU_IMAGE:-shing1211/futuopend:latest}
container_name: futuopend-a
restart: unless-stopped
platform: linux/${PLATFORM:-amd64}
env_file:
- path: .env-a
required: false
environment:
- TZ=${TZ:-Asia/Hong_Kong}
volumes:
- ./secrets-a/FutuOpenD.xml:/run/secrets/FutuOpenD.xml:ro
- ./secrets-a/rsa_key.txt:/run/secrets/rsa_key.txt:ro
- futuopend-data-a:/home/futuopend/.com.futunn.FutuOpenD
ports:
- "11111:11111"
- "11112:11112"
healthcheck:
test: ["CMD", "pgrep", "-x", "FutuOpenD"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
stop_grace_period: 30s
futuopend-b:
image: ${FUTU_IMAGE:-shing1211/futuopend:latest}
container_name: futuopend-b
restart: unless-stopped
platform: linux/${PLATFORM:-amd64}
env_file:
- path: .env-b
required: false
environment:
- TZ=${TZ:-Asia/Hong_Kong}
volumes:
- ./secrets-b/FutuOpenD.xml:/run/secrets/FutuOpenD.xml:ro
- ./secrets-b/rsa_key.txt:/run/secrets/rsa_key.txt:ro
- futuopend-data-b:/home/futuopend/.com.futunn.FutuOpenD
ports:
- "21111:11111"
- "21112:11112"
healthcheck:
test: ["CMD", "pgrep", "-x", "FutuOpenD"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
stop_grace_period: 30s
volumes:
futuopend-data-a:
futuopend-data-b: