-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (48 loc) · 1.29 KB
/
docker-compose.yml
File metadata and controls
48 lines (48 loc) · 1.29 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
services:
ib-gateway:
image: ib-gateway
build:
context: ./build
dockerfile: Dockerfile
args:
PROGRAM: ibgateway
RELEASE: stable
ARCH: x64
container_name: gateway
restart: always
network_mode: host
environment:
# VNC server password. If not defined, then VNC server will NOT start.
VNC_PWD: tws
VNC_SCREEN_DIMENSION: ${VNC_SCREEN_DIMENSION:-1600x1200x24}
# live or paper.
TRADING_MODE: ${TRADING_MODE:-paper}
IB_USER: ${IB_USER}
IB_PASSWORD: ${IB_PASSWORD}
ib-tws:
image: ib-tws
build:
context: ./build
dockerfile: Dockerfile
args:
PROGRAM: tws
RELEASE: stable
ARCH: x64
container_name: tws
restart: always
network_mode: host
security_opt:
- seccomp:unconfined
shm_size: 2g
environment:
# User `uid` to run the container as (1000 is host user)
PUID: 1000
# User `gid` to run the container as (1000 is host user)
PGID: 1000
# VNC server password. If not defined, then VNC server will NOT start.
VNC_PWD: tws
VNC_SCREEN_DIMENSION: ${VNC_SCREEN_DIMENSION:-1600x1200x24}
# live or paper.
TRADING_MODE: ${TRADING_MODE:-paper}
IB_USER: ${IB_USER}
IB_PASSWORD: ${IB_PASSWORD}