Run Interactive Brokers TWS or Gateway in Docker container.
Based on IBC project.
To run Client Portal Web API Gateway in Docker, you may want to use IBeam instead.
IB_APP— trading app, possible values aretwsorgwIB_MODE— trading mode, possible values arepaperorliveIB_USER— usernameIB_PASSWORD— passwordVNC_PASSWORD— OPTIONAL — if not set, VNC connection is disabledTZ— OPTIONAL — if not set, app timezone isUTC. Use TZ database name from here, e.g.Europe/Helsinki
By default, sample config.ini used. To use custom config.ini, download the sample, modify it and map to /root/ibc/config.ini. Please see example docker-compose.yml.
Use configuration from included sample file docker-compose.yml.
Or run directly with docker run command:
docker run -e IB_APP=tws -e IB_MODE=paper -e IB_USER=ib_user -e IB_PASSWORD=password -e VNC_PASSWORD=vnc_password -e TZ=Europe/Helsinki -p 5900:5900 zdytch/ib-dockerized
Use container address and port 4002 to connect to the IB application.
This method of deploying TWS/Gateway is not endorsed nor supported by Interactive Brokers.
