Add install script for moodle

This commit is contained in:
Sambo Chea 2021-04-28 12:37:46 +07:00
parent e0705bec27
commit d26dc81604

24
moodle/moodle-setup.sh Normal file
View File

@ -0,0 +1,24 @@
docker network create moodle-network
docker volume create --name mariadb_data
docker run -d --name mariadb \
--env ALLOW_EMPTY_PASSWORD=yes \
--env MARIADB_USER=bn_moodle \
--env MARIADB_PASSWORD=bitnami \
--env MARIADB_DATABASE=bitnami_moodle \
--network moodle-network \
--volume mariadb_data:/bitnami/mariadb \
bitnami/mariadb:latest
docker volume create --name moodle_data
docker run -d --name moodle \
-p 8075:8080 -p 8076:8443 \
--env ALLOW_EMPTY_PASSWORD=yes \
--env MOODLE_DATABASE_USER=bn_moodle \
--env MOODLE_DATABASE_PASSWORD=bitnami \
--env MOODLE_DATABASE_NAME=bitnami_moodle \
--network moodle-network \
--volume moodle_data:/bitnami/moodle \
bitnami/moodle:latest