forked from mvberg/ib-gateway-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
42 lines (40 loc) · 1.13 KB
/
docker-compose.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
37
38
39
40
41
version: '3'
services:
tws:
image: ib-gateway-docker_tws:latest
ports:
- "7496:5003"
- "4001:5003"
- "4002:5003"
- "4003:5003"
- "5902:5900"
build: .
ports:
- "4003:5003"
- "5902:5900"
volumes:
- ib-controller:/opt/IBController
- ib-jts:/root/Jts
environment:
- TZ=America/Chicago
# Variables pulled from /IBController/IBControllerGatewayStart.sh
- VNC_PASSWORD=1234 # CHANGEME
- TWS_MAJOR_VRSN=stable-standalone
- IBC_INI=/opt/IBController/IBController.ini
- IBC_PATH=/opt/IBController
- TWS_PATH=/root/Jts
- TWS_CONFIG_PATH=/root/Jts
- LOG_PATH=/opt/IBController/Logs
- JAVA_PATH=/opt/i4j_jres/1.8.0_152-tzdata2019c/bin # JRE is bundled starting with TWS 952
- TRADING_MODE=paper # either paper or live
- TWSUSERID=fdemo # IB account
- TWSPASSWORD=demouser # IB account password
- FIXUSERID=
- FIXPASSWORD=
- APP=GATEWAY
- SOCAT_LISTEN_PORT=5003
- SOCAT_DEST_PORT=4003 # paper = 4002, live 4003
- SOCAT_DEST_ADDR=127.0.0.1
volumes:
ib-controller:
ib-jts: