Flask Docker container SocketIO Issues
问题 I have a Flask application that uses SocketIO to fetch data from Postgres live. The app works fine when I run this locally. The problem arouses when I use docker-compose to host my Flask app. My JS client and flask server is hosted into a single app and on the same container. My socketio in JS is like this: var socket = io().connect(window.location.protocol + '//' + document.domain + ':' + location.port); Dockerfile: # Using python 3.7 in Alpine FROM python:3.6.5-stretch # Set the working