Add docker compose for moodle

This commit is contained in:
Sambo Chea 2021-04-28 12:06:48 +07:00
parent d713066d5d
commit e0705bec27
2 changed files with 39 additions and 0 deletions

39
moodle/docker-compose.yml Normal file
View File

@ -0,0 +1,39 @@
version: '2'
services:
mariadb:
image: docker.io/bitnami/mariadb:10.5
environment:
- ALLOW_EMPTY_PASSWORD=yes
- MARIADB_USER=bn_moodle
- MARIADB_DATABASE=bitnami_moodle
- MARIADB_CHARACTER_SET=utf8mb4
- MARIADB_COLLATE=utf8mb4_unicode_ci
volumes:
- 'mariadb_data:/bitnami/mariadb'
moodle:
image: docker.io/bitnami/moodle:3
ports:
- '8075:8080'
- '8076:8443'
environment:
- MOODLE_DATABASE_HOST=mariadb
- MOODLE_DATABASE_PORT_NUMBER=3306
- MOODLE_DATABASE_USER=bn_moodle
- MOODLE_DATABASE_NAME=bitnami_moodle
- ALLOW_EMPTY_PASSWORD=yes
- MOODLE_USERNAME=cubetiq
- MOODLE_PASSWORD=cubetiq
- MOODLE_EMAIL=admin@cubetiqs.com
- MOODLE_SITE_NAME="CUBETIQ LMS"
volumes:
- 'moodle_data:/bitnami/moodle'
- 'moodledata_data:/bitnami/moodledata'
depends_on:
- mariadb
volumes:
mariadb_data:
driver: local
moodle_data:
driver: local
moodledata_data:
driver: local