Django + React + Regis - Find BUG in my code to run in DOCKER -- 3
$10-30 USD
Cerrado
Publicado hace más de 2 años
$10-30 USD
Pagado a la entrega
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)],
},
},
}
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.