diff --git a/moodle/moodle-setup.sh b/moodle/moodle-setup.sh new file mode 100644 index 0000000..3da924b --- /dev/null +++ b/moodle/moodle-setup.sh @@ -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 \ No newline at end of file