forked from gnzsnz/ib-gateway-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (39 loc) · 988 Bytes
/
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
services:
ib-gateway:
restart: always
build:
context: ./stable
image: ghcr.io/gnzsnz/ib-gateway:stable
env_file:
- ./.env
environment:
TZ: ${TIME_ZONE:-America/New_York}
CUSTOM_CONFIG: ${CUSTOM_CONFIG:-NO}
secrets:
- tws_password_paper
- vnc_password
- tws_password
volumes:
- default_volume:/home/ibgateway/data:ro
# - ${PWD}/jts.ini:/home/ibgateway/Jts/jts.ini
# - ${PWD}/config.ini:/home/ibgateway/ibc/config.ini
# - ${PWD}/tws_settings/:${TWS_SETTINGS_PATH:-/home/ibgateway/Jts}
# - ${PWD}/ssh/:/home/ibgateway/.ssh
ports:
- "127.0.0.1:4001:4003"
- "127.0.0.1:4002:4004"
- "127.0.0.1:5900:5900"
networks:
- ib-network
secrets:
tws_password_paper:
file: pass/tws_password_paper.txt
vnc_password:
file: pass/vnc_password.txt
tws_password:
file: pass/tws_password.txt
networks:
ib-network:
driver: bridge
volumes:
default_volume: