forked from manhinhang/ib-gateway-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-stack.yml
36 lines (34 loc) · 852 Bytes
/
docker-stack.yml
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
# IB Gateway stack
version: "3.8"
services:
tws:
image: rylorin/ib-gateway-docker:stable
environment:
IB_ACCOUNT: ${TWS_USERID}
IB_PASSWORD: ${TWS_PASSWORD}
TRADE_MODE: ${TRADE_MODE:-paper}
VNC_SERVER_PASSWORD: ${VNC_SERVER_PASSWORD:-}
IB_GATEWAY_PING_CLIENT_ID: ${IB_GATEWAY_PING_CLIENT_ID:-1001}
IBGW_WATCHDOG_CLIENT_ID: ${IBGW_WATCHDOG_CLIENT_ID:-1002}
restart: unless-stopped
networks:
- default
ports:
- published: 4002
target: 4002
protocol: tcp
mode: ingress
- published: 5900
target: 5900
protocol: tcp
mode: ingress
deploy:
placement:
constraints:
- node.platform.os == linux
- node.role == manager
replicas: 1
networks:
default:
system_dmz_network:
external: true