Django + React + Regis - Find BUG in my code to run in DOCKER -- 3
$10-30 USD
Paid on delivery
Hi, I'm trying to run my React + Django + Regis with docker and I'm having an error. It works outside of docker but when in docker it doesn't work
Note: I'm using django channels to use chat functionality which requires regis to run
What does work?
- Able to connect to http://localhost to access frontend
- Able to connect to http://localhost:8000 to access backend
What doesn't work?
- WebSocket connection to 'ws://[login to view URL]' failed:
I think this has to do with regis not running/setup properly inside the docker containers, because when running it outside of docker it works perfectly by starting regis this way
docker run -p 6379:6379 -d redis:5
[login to view URL]
Django [login to view URL]
CHANNEL_LAYERS = {
'default': {
'BACKEND': '[login to view URL]',
'CONFIG': {
"hosts": [('redis', 6379)],
},
},
}
Project ID: #32190751
About the project
4 freelancers are bidding on average $43 for this job
I'm an expert in Cloud and Cloud resource management and Application management in Docker Env. I will be able to help on building running your application in Kubernetes mode based on your requirement.
- previous experience in such topics; - eager to discuss a lot in this chat stream; - degree stats - maths;
Hi. How are you? I am a docker expert and web developer. How can I help you. I wish to help you. Thank and Regards.