Last active
April 5, 2024 09:39
-
-
Save dnburgess/a1bf8835f699123987cca2fcdec14f37 to your computer and use it in GitHub Desktop.
DB Tech Moodle
This file contains 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: '2' | |
services: | |
mariadb: | |
image: mariadb | |
volumes: | |
- /srv/Configs/Databases/Moodle:/var/lib/mysql | |
environment: | |
- MYSQL_ROOT_PASSWORD=moodle | |
- MYSQL_ROOT_USER=root | |
- MYSQL_DATABASE=moodle | |
moodle: | |
image: bitnami/moodle:latest | |
ports: | |
- 8080:8080 | |
- 8443:8443 | |
environment: | |
- MOODLE_DATABASE_HOST=mariadb | |
- MOODLE_DATABASE_USER=root | |
- MOODLE_DATABASE_PASSWORD=moodle | |
- MOODLE_DATABASE_NAME=moodle | |
- PUID=998 | |
- PGID=100 | |
volumes: | |
- /srv/Configs/Moodle:/bitnami/moodle | |
- /srv/Configs/MoodleData:/bitnami/moodledata | |
depends_on: | |
- mariadb | |
links: | |
- mariadb:mariadb |
@zeemalik2008 configure different ports in your compose file,
Example,
ports:
- '4040:80'
- '4041:81'
- '8443:443'
Hey is there an ENV variable I can pass to alter the default server timezone. The usual docker convention TZ='time/zone' isnt working for me
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sir, i have already a same port for NGINX , what i can do with this compose,
here is my NGINX stack details .
version: '2'
services:
app:
image: 'jc21/nginx-proxy-manager:latest'
ports:
- '80:80'
- '81:81'
- '443:443'
environment:
DB_MYSQL_HOST: "db"
DB_MYSQL_PORT: 3306
DB_MYSQL_USER: "npm"
DB_MYSQL_PASSWORD: “npm”
DB_MYSQL_NAME: "npm"
volumes:
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
db:
image: 'jc21/mariadb-aria:latest'
environment:
MYSQL_ROOT_PASSWORD: ’npm’
MYSQL_DATABASE: 'npm'
MYSQL_USER: 'npm'
MYSQL_PASSWORD: ’npm’
volumes:
- ./data/mysql:/var/lib/mysql