forked from dvasdekis/ib-gateway-docker-gcp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (53 loc) · 1.35 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
42
43
44
45
46
47
48
49
50
51
52
53
version: '3.4'
services:
tws-paper:
build:
context: .
args:
TRADING_MODE: paper
# image: dvasdekis/ib-gateway-docker:v978
volumes:
- ./ib/paper/IBController.ini:/root/IBController/IBController.ini
- ./ib/paper/jts.ini:/root/Jts/jts.ini
environment:
- TRADING_MODE=paper
- TWSUSERID=${TWS_USER_ID}
- TWSPASSWORD=${TWS_PASSWORD}
- TWSMAJORVRSN=1012
- FIXUSERID=
- FIXPASSWORD=
- XVFB_ARGS="-ac -screen 0 1024x768x16 +extension RANDR"
restart: always
ports:
- 5901:5900
tws-live:
build:
context: .
args:
TRADING_MODE: live
volumes:
- ./ib/live/IBController.ini:/root/IBController/IBController.ini
- ./ib/live/jts.ini:/root/Jts/jts.ini
environment:
- TRADING_MODE=live
- TWSUSERID=${TWS_USER_ID}
- TWSPASSWORD=${TWS_PASSWORD}
- TWSMAJORVRSN=1012
- FIXUSERID=
- FIXPASSWORD=
- XVFB_ARGS="-ac -screen 0 1024x768x16 +extension RANDR"
restart: always
ports:
- 5900:5900
test:
build: tests/ib_insync
environment:
- IB_GATEWAY_PAPER_URLNAME=tws-paper
- IB_GATEWAY_PAPER_URLPORT=4004
- IB_GATEWAY_LIVE_URLNAME=tws-live
- IB_GATEWAY_LIVE_URLPORT=4003
- MKT_DATA_TYPE=4
restart: on-failure
depends_on:
- tws-paper
- tws-live