-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (41 loc) · 1.33 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
version: "3.1"
services:
tws:
image: industrialninja/ibg_docker_tws
env_file: .env
ports:
- ${IB_API_PORT:-4001}:4003
- ${IBG_VNC_PORT:-5901}:5900
volumes:
- ./config/ib/IBController.ini:/root/IBController/IBController.ini
- ./config/ib/jts.ini:/root/Jts/jts.ini
environment:
- TZ=America/NewYork
# Variables pulled from /IBController/IBControllerGatewayStart.sh
- TWS_MAJOR_VRSN=974
- IBC_INI=/root/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/bin # JRE is bundled starting with TWS 952
- APP=GATEWAY
ib-api:
container_name: ib-api
build:
context: .
dockerfile: ./api.Dockerfile
links:
- tws
volumes:
- .:/usr/src/app
# More info on the node_modules volume at:
# http://jdlm.info/articles/2016/03/06/lessons-building-node-app-docker.html
# under "The node_modules Volume Trick"
- /usr/src/app/node_modules
# Run nodemon with legacy watch
# https://github.com/remy/nodemon#application-isnt-restarting
# Ignore public/ because generating documentation programatically
# on startup was causing an infinite loop
depends_on:
- tws