wger-project / docker

Production...ish docker-compose image for wger
GNU Affero General Public License v3.0
138 stars 48 forks source link

issue with web ui #106

Open ReaperOfTheSoul opened 4 weeks ago

ReaperOfTheSoul commented 4 weeks ago

Current ENV: Portainer with 7 Docker hosts in swam mode Storage: QNAP with nfs shares

Web UI not loading.

Error NGINX Conatiner: 10.255.250.153 - - [25/Oct/2024:07:44:57 +0000] "GET /static/images/favicon.png HTTP/1.1" 403 555 "https://opvolging.slimfit-center.be/en/software/features" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0" "10.255.0.6"

composer file via portainer deployed:

Please consult the Deployment section in the readme if you want to deploy

this. You need to keep this nginx service, even if you have your own,

otherwise the static files will not be served correctly! If you do remove

it, configure yours similarly to what's in config/nginx.conf

Also take a look at the "Static files" section in the .env file

services: web: image: wger/server:latest depends_on:

volumes: postgres-data: driver_opts: type: nfs o: addr=10.0.105.1,rw device: ":/DockerClusterData/SlimFitCenter/Wger/POSTGRES" celery-beat: driver_opts: type: nfs o: addr=10.0.105.1,rw device: ":/DockerClusterData/SlimFitCenter/Wger/CELERY" static: driver_opts: type: nfs o: addr=10.0.105.1,rw device: ":/DockerClusterData/SlimFitCenter/Wger/STATIC" media: driver_opts: type: nfs o: addr=10.0.105.1,rw device: ":/DockerClusterData/SlimFitCenter/Wger/MEDIA" nginxconfig: driver_opts: type: nfs o: addr=10.0.105.1,rw device: ":/DockerClusterData/SlimFitCenter/Wger/NGINXCONFIG" redis-data: driver_opts: type: nfs o: addr=10.0.105.1,rw device: ":/DockerClusterData/SlimFitCenter/Wger/REDIS" caddy: driver_opts: type: nfs o: addr=10.0.105.1,rw device: ":/DockerClusterData/SlimFitCenter/Wger/CADDY" caddy-data: driver_opts: type: nfs o: addr=10.0.105.1,rw device: ":/DockerClusterData/SlimFitCenter/Wger/CADDYDATA" caddy-logs: driver_opts: type: nfs o: addr=10.0.105.1,rw device: ":/DockerClusterData/SlimFitCenter/Wger/CADDYLOGS" caddy-config: driver_opts: type: nfs o: addr=10.0.105.1,rw device: ":/DockerClusterData/SlimFitCenter/Wger/CADDYCONFIG"

networks: wger: driver: overlay attachable: true ipam: config:

ReaperOfTheSoul commented 4 weeks ago

conflicting access rights for ngnx vs wweb service

rolandgeider commented 3 weeks ago

conflicting access rights for ngnx vs wweb service

hi! yes, if there you mount folders you will get problems when accessing these files (that's why we're using the volumes). However, this should be fixable with some chown and chmod. If you manage to fix this, tell us what you did you I can mention this in a comment in the readme

ReaperOfTheSoul commented 3 weeks ago

Dear,

I did but the web lost access

Sent from my Galaxy

-------- Original message -------- From: Roland Geider @.> Date: 10/26/24 09:59 (GMT+01:00) To: wger-project/docker @.> Cc: ReaperOfSouls @.>, Author @.> Subject: Re: [wger-project/docker] issue with web ui (Issue #106)

conflicting access rights for ngnx vs wweb service

hi! yes, if there you mount folders you will get problems when accessing these files (that's why we're using the volumes). However, this should be fixable with some chown and chmod. If you manage to fix this, tell us what you did you I can mention this in a comment in the readme

— Reply to this email directly, view it on GitHubhttps://github.com/wger-project/docker/issues/106#issuecomment-2439422815, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AR3INHC6HH4XA3HEEFRFNATZ5NDXBAVCNFSM6AAAAABQSWD3CKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZZGQZDEOBRGU. You are receiving this because you authored the thread.Message ID: @.***>