See CHANGELOG for a list of notable changes
With docker run
docker run -e IQFEED_PRODUCT_ID=CHANGEME \
-e IQFEED_LOGIN=CHANGEME \
-e IQFEED_PASSWORD=CHANGEME \
-p 5009:5010 -p 5901:5901 -p 9100:9101 -p 9200:9201 -p 9300:9301 -p 9400:9401\
-v /var/log/iqfeed:/home/wine/DTN/IQFeed \
-d jaikumarm/iqfeed:v61020-w5
With docker-compose
edit the docker-compose.yml with your iqfeed credentials, then run
docker-compose -f docker-compose.yml up -d iqfeed
In docker logs of the container and you should see
...
2020-03-03 03:43:30,533 INFO pyiqfeed_admin_conn.<module>.144: iqfeed service not running.
2020-03-03 03:43:31,729 INFO reaped unknown pid 46
2020-03-03 03:43:32,721 INFO reaped unknown pid 53
2020-03-03 03:43:32,722 INFO reaped unknown pid 100
Failed to read: session.screen0.titlebar.left
Setting default value
Failed to read: session.screen0.titlebar.right
Setting default value
2020-03-03 03:43:34,855 INFO reaped unknown pid 98
2020-03-03 03:43:48,235 INFO pyiqfeed_admin_conn.<module>.136: iqfeed service running.
...
If you see iqfeed service running.
it means it all good.
You can also see a very chatty version of whats going on with iqfeed client if you tail /var/log/iqfeed/IQConnectLog.txt
or /var/log/iqfeed/pyiqfeed-admin-conn.log
.
SideNote:
As of right now for some reason not known to me the iqfeed client will crash every few days or hours :( I have worked around it by building the docker container health check script that monitors for wine crashes in the wine.log file and will mark the conatainer as unhealthy
. Once this is done the container can be restarted by an external service, most popular ways are either docker stacks or docker-autoheal. I use autoheal becasue its simpler and good enough for my usecase. See docker-compose.yml
file for details.
docker-compose -f docker-compose.yml up -d autoheal
This is fairly a opinionated configuration based on my own needs, if you dont like it fork it!
Also some of the code is borrowed and/or inspired from https://github.com/bratchenko/docker-iqfeed and https://github.com/webanck/docker-wine-steam