Hi,
I'm trying to setup up my django project to use django channels in a dockerized setup. The whole setup seems to work fine on a local server and when I use runserver instead of daphne. When I run the setup using daphne, the web page gives no response
The **** page isn’t working
*** didn’t send any data.
I am not sure at what point this is really failing. I tried running daphne with verbosity 2 and it seems the connections are not reaching it.
The setup is like this:
I am running the whole set up on AWS. I have a Redis cluster that I am connecting to and using as a channel layer. I assume this is working fine, since the runserver seems to be working.
Following this I changed the setup to have two docker containers. The first one runs this script and has port 8000 of container mapped to port 80 of host machine:
cd myproject
python manage.py collectstatic --no-input
python manage.py migrate
python manage.py createsu
daphne myproject.asgi:channel_layer -b 0.0.0.0 -p 8000 --verbosity 2
The second container simply has this:
cd myproject
python manage.py runworker
The logs from both containers indicate that they are both waiting for some requests to reach them. But nothing seems to be reaching them.
I have no idea what I'm supposed to be fixing here. DO i need to put nginx/apache in front of it for daphne to work??
Regards,
Vaisagh