I need to run docker container on localhost inside Shinyproxy (to access Mysql on localhost).
There is an older unresolved? question about the same issue.
I have tried including docker-network: localhost into application.yml but with no luck.
Any help appreciated!
if your localhost have static ip you can use that IP to access MySql (but configure MySql that it can be accessible over ip port). No need for docker-network settings.
Thanks. After thinking about it for a while, I’d still prefer fot the docker to run on localhost. Since the shinyproxy will probably sit on the same server with mysql database after deployment, it’d would be better this way than poking unnecessary holes in firewall for “distant” access.
I take my argumentation back, after discussing it with admins & server guys. Though docker-compose might get handy, forcing the docker to run on locahost and relying on it is not a robust solution. Well, live to learn. Thanks for your help Dusan.