erseco / alpine-moodle

Moodle docker image based on Alpine Linux
https://hub.docker.com/r/erseco/alpine-moodle
MIT License
42 stars 33 forks source link

No CSS when changing Moodle port # #21

Closed christarroja closed 1 year ago

christarroja commented 1 year ago

Hi, thanks for sharing your work!

Not sure if this is a bug, but more of a question. Why doesn't my site load the CSS when I change the Moodle port in the .yml file? For example, instead of port 80, I am trying 3000:

ports:
      - 3000:8080

and the result is like this: image

Rest of the .yml file is the same. And when I revert the port # back to 80, then the Moodle site works

erseco commented 1 year ago

If you want to change the port you should proxy your moodle installation better than changing directly the exposed port, this is because moodle prepend all URLs with the content of wwwroot variable. You can add a Nginx container with a proxy_pass in front of your moodle and expose it

Best!