I have a webapp running on a docker container whose port 443 is exposed and mapped to port 32770 on local host. The container IP on the docker subnet is 172.17.0.3
When I access the webapp on my linux host via:
- https://172.17.0.3 : Web app runs fine without any issues.
- https://localhost:32770 : Web app loads, I am able to login, but UI doesn’t communicate with middleware
(Middleware runs on the container and maintains an SQLite DB and talks to the app via websocket using port 9000)
fzkl@nemean-lx:~/repo/ams-emu$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7ce281d8a66a atonlabemu_only_443 “./start.sh” 18 minutes ago Up 18 minutes 0.0.0.0:32770->443/tcp sleepy_lamport
It seems like Socket IO requests from the client side is not reaching the middleware when routed through docker-proxy. Any ideas on how this could be fixed?
Thank you for your help.