problem to get emit client to flask-socketio in docker #1967
6273parastu
started this conversation in
General
Replies: 2 comments 2 replies
-
There is nothing in Docker that can cause this. You need to look at the differences between the case that works and the one that doesn't beyond Docker. |
Beta Was this translation helpful? Give feedback.
1 reply
-
If possible, please write a simple program with flask-socketio and dockerize it and check its connection and emit and send me your project. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When i run flask-socketio app in local, It worked fine, but when i deploy project on docker, i do not get emit from client, you think where is the problem?
Dockerfile :
FROM python:3.9
WORKDIR /socket
COPY . .
RUN python -m pip install --upgrade pip
RUN pip install -r requirements.txt
CMD python run_server.py
requirements.txt :
eventlet==0.30.2
Flask==2.0.3
Flask-Cors==3.0.10
flask-redis==0.4.0
Flask-SocketIO==5.3.3
Flask-WTF==1.1.1
python-engineio==4.3.4
python-socketio==5.7.2
app.py:
Beta Was this translation helpful? Give feedback.
All reactions