Closed chinnuu05 closed 10 months ago
For reference, it was answered here: https://caddy.community/t/using-caddy-in-docker-compose-upstreams-breaks-when-using-internal-network/22585
TL;DR the 404 is not coming from Caddy, but from the Django app itself. There's no problem with Caddy here.
I'm using caddy-docker-proxy to serve my Django web app but am encountering some strange networking issues
Here's my compose file, it places caddy and django on an external network together
When deploying this compose file it works as long as I don't assign a network to my db container. I get a 500 Error but that's because Django cant find the db.
So I assigned an internal network to db to make it visible to Django, and this is where the problems arise. Instead of Caddy proxying requests to my django web app like it did before, I get a Not Found error.
Removing the
on the db container fixes it and Caddy shows me the Django 500 error again
But if I try to assign the internal network to my db container, Caddy immediately gives a "Not Found" and stops proxying to Django. Why does this happen?