mirror of
https://github.com/kou029w/_.git
synced 2025-01-30 22:08:02 +00:00
create moodle
This commit is contained in:
parent
6069015c84
commit
f44b75c613
1 changed files with 33 additions and 0 deletions
33
moodle/docker-compose.yml
Normal file
33
moodle/docker-compose.yml
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
version: '2'
|
||||||
|
services:
|
||||||
|
mariadb:
|
||||||
|
image: 'docker.io/bitnami/mariadb:10.3-debian-10'
|
||||||
|
environment:
|
||||||
|
- ALLOW_EMPTY_PASSWORD=yes
|
||||||
|
- MARIADB_USER=bn_moodle
|
||||||
|
- MARIADB_DATABASE=bitnami_moodle
|
||||||
|
volumes:
|
||||||
|
- 'mariadb_data:/bitnami/mariadb'
|
||||||
|
moodle:
|
||||||
|
image: 'docker.io/bitnami/moodle:3-debian-10'
|
||||||
|
ports:
|
||||||
|
- '80:8080'
|
||||||
|
- '443: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
|
||||||
|
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
|
Loading…
Add table
Reference in a new issue