Django + React + Regis - Find BUG in my code to run in DOCKER -- 3

Closed Posted 2 years ago Paid on delivery
Closed 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)],

},

},

}

Django React.js Docker

Project ID: #32190751

About the project

4 proposals Remote project Active 2 years ago

4 freelancers are bidding on average $43 for this job

sachinvd7

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.

$30 USD in 7 days
(1 Review)
0.7
uvtxyz1991

- previous experience in such topics; - eager to discuss a lot in this chat stream; - degree stats - maths;

$85 USD in 2 days
(1 Review)
2.5
yaroslavkushnir1

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.

$25 USD in 7 days
(0 Reviews)
0.0