Created
September 3, 2020 22:27
-
-
Save mikamboo/cd8747a86c40a6bd99adec8538073b05 to your computer and use it in GitHub Desktop.
Bitnami Docker Compose : Wordpress + Moddle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
################# | |
# Moodle | |
################# | |
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: | |
- '8081:8080' | |
- '8444: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 | |
################# | |
# Wordpress | |
################# | |
mariadb_wp: | |
image: 'docker.io/bitnami/mariadb:10.3-debian-10' | |
# volumes: | |
# - 'wp_mariadb_data:/bitnami/mariadb' | |
environment: | |
- MARIADB_USER=bn_wordpress | |
- MARIADB_DATABASE=bitnami_wordpress | |
- ALLOW_EMPTY_PASSWORD=yes | |
wordpress: | |
image: 'docker.io/bitnami/wordpress:5-debian-10' | |
ports: | |
- '8080:8080' | |
- '8443:8443' | |
# volumes: | |
# - 'wordpress_data:/bitnami/wordpress' | |
depends_on: | |
- mariadb_wp | |
environment: | |
- MARIADB_HOST=mariadb_wp | |
- MARIADB_PORT_NUMBER=3306 | |
- WORDPRESS_DATABASE_USER=bn_wordpress | |
- WORDPRESS_DATABASE_NAME=bitnami_wordpress | |
- ALLOW_EMPTY_PASSWORD=yes | |
# volumes: | |
# wp_mariadb_data: | |
# driver: local | |
# moodle_data: | |
# driver: local | |
# moodledata_data: | |
# driver: local | |
# mariadb_data: | |
# driver: local | |
# wordpress_data: | |
# driver: local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://hub.docker.com/r/bitnami/moodle
https://hub.docker.com/r/bitnami/wordpress
https://github.com/bitnami/bitnami-docker-moodle/blob/master/docker-compose.yml
https://github.com/bitnami/bitnami-docker-wordpress/blob/master/docker-compose.yml