-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker compose without ngix (local/LAN use only)? #42
Comments
You do need the nginx service! The Django application doesn't serve any static files, you need a different service for that |
Thanks for responding, please could you elaborate a bit more ? What different service do I need ? I'm new to nginx, but always understood it to be a reverse proxy to gain access to an internal service externally ? (As I use a vpn to connect into my network, I always look for things to be local ?) |
So the django application will only serve the application itself (so only the generated html), no static files at all for performance reasons. For this you need something else that does that, on this case an nginx. Technically it also serves as a reverse proxy because it hides the application so that it looks like everything is coming from one placeAm 13.12.2022 06:17 schrieb Node Central ***@***.***>:
Hi @rolandgeider
Thanks for responding, please could you elaborate a bit more ?
I'm new to nginx, but always understood it to be a reverse proxy to gain access to an internal service externally ? (As I use a vpn I always look for things to be local ?)
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Thanks again @rolandgeider , really appreciate the help and the insight.. I've added the nginx element back into the docker compose and run it again, but sadly nothing seems to have changed I still have a basic text/html UI ? (Any ideas?) My Compose and nginx.conf are below..
And my nginx.conf file is below..
|
You need to use the one from the repo (or some that does the same things). Also, don't change the ports there, those are only used within the wger network and are not used outside of it https://github.com/wger-project/docker/blob/master/config/nginx.conf |
Thanks again @rolandgeider I've replaced the nginx.conf, and restarted the containers, but I'm still getting the basic text/html UI ? |
mhhh, can the "web" container write to /share/Container/wger/static? It should try to copy everything during startup, perhaps there's something in the logs? |
Hi @rolandgeider - looking in the logs it shows the following..
It then goes on with pretty much the same for 5 pages.. And looking in my mapped location |
FYI - permissions for
|
and when you access the site, there's just 404 errors, nothing else right? Did you modify the nginx.conf somehow? If everything is collected nginx should serve those files |
Interesting, looking in
Not an expert in Linux, but it looks like wger writes the files using an ID which has an existing mapping on my system (FYI - I guess it should ideally use |
it's probably using the user id of the wger user in the container which maps to something else on the host (that's one of the reasons I used volumes for this, it makes these things much easier) |
but as long as nginx can access them, it shouldn't matter |
If it helps, the user ID
|
can this be closed? |
Hi @rolandgeider , not yet, I’m still getting the basic text, and the logs are showing that it can’t find the static content.. One part is says image found, and then in another it’s missing ? (Log extract below) - any ideas ?
|
Accessing the command line I can see that wger has access to my mapped volume, as I can retrieve information on what’s in there - yet when it tries to read from it, it is reporting the content is not found.. Hope the following helps extract from the command line of the docker instance helps, it feels like a permissions issue, as itr was showing UID 1000 before, so i updated those to the UID I used to create the volumes which was 1005 - not 100% if/how that relates but hopefully it helps..
|
Hi,
Please could someone help me with what the Docker compose needs to be for a local/lan only (no ngix) set up?
I’ve tried what i can, and have got the following, so far, which is not quite working as expected ...
I can access Wger and register but the ui is very basic? See below.. (any ideas)?
The text was updated successfully, but these errors were encountered: