Closed LukasWerfel closed 5 years ago
Is it possible that daphne is somehow limited from where it can be accessed? Inside docker the server can be reached without a problem. But not from the host, even though the port should be bound correctly.
Found the reason:
Note that the default IP address, 127.0.0.1, is not accessible from other machines on your network. Django Docs
Found the reason:
Note that the default IP address, 127.0.0.1, is not accessible from other machines on your network. Django Docs
Can you describe your setup? It looks like you're trying to do something I haven't planned. :)
How about ./bin/manage runserver --insecure 0.0.0.0:8001
?
Remember that this app is not intended to be exposed to the open internet.
That worked great! Thank you!
Updated the PR description
Would it be possible to demonstrate some development workflow using this dev docker setup?
Did #25 as an example, see #31
docker-compose up
VPN@Home
Hi @ezaquarii
first of all thank you for the great work on this project! It really helped me out making my RBPi accessible from the internet! :)
Right now, in order to contribute to vpn-at-home, a developer needs to install the prerequisites and make sure things are in ${PATH}.
While for seasoned developers, this might not be a problem, but
Take my exampe: I am mainly a front-end dev by training, and I initially I came to this repo to work on a small front-end thing. But without docker this means I have to work with django, virtualenv, ansible and so on. This makes it hard for me.
With this PR I could just run one command and would be ready to work on what I came to work on. Since it would make the dev environment reproducible, things like this could be made easier for the future. I have also the confidence, that if I break something, I can just throw away the container and rebuild it!
IMHO it makes the project more accessible for contributors. It should also be noted, that IDEs do work with Docker. And it's also totally optional!
Let me know what you think, what requirements you have for this, and what you would like to change!