I managed to run this Moodle and everything is working fine, acessing a external database. But now I am trying to configure moodle to point the container' directory /var/www/moodledata to a directory on my host, let's say, /host/moodledata.
Ex:
This work (default moodledata inside the container):
$ docker run --name moodle402 -p 8080:80 -v $PWD:/var/www/html moodlehq/moodle-php-apache:7.4
This no work and I don't know why. Moodle show the error: error/An error occurred whilst communicating with the server
I managed to run this Moodle and everything is working fine, acessing a external database. But now I am trying to configure moodle to point the container' directory
/var/www/moodledata
to a directory on my host, let's say,/host/moodledata
.Ex:
This work (default moodledata inside the container):
This no work and I don't know why. Moodle show the error: error/An error occurred whilst communicating with the server
My Moodle config:
The directory
/host/moodledata
has full permissions (777).So, is there some "right" way to have moodledata on my host?