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

Extensions persistence #9

Closed lupa18 closed 2 years ago

lupa18 commented 2 years ago

Hi ! how do you recommend configuring persistence on extensions?

I added 2 or 3 extensions and after the container removal and re-creation it appears "disappeared from disk".

erseco commented 2 years ago

The easiest way to add persistence on extensions is binding the mod directory to a data volume or to your filesystem in the docker-compose.yml file

erseco commented 2 years ago

I added a volume to the mod directory, you can try the beta labeled container to check if it works. Best regards!

lupa18 commented 2 years ago

I was trying to figure it, but it seems to be more problematic, since installation folder could be one of several: https://docs.moodle.org/311/en/Installing_plugins#Installing_manually_at_the_server

or even more: https://docs.moodle.org/dev/Plugin_types

erseco commented 2 years ago

There are two approaches:

Best regards!