-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
87 lines (81 loc) · 2.54 KB
/
docker-compose.yml
File metadata and controls
87 lines (81 loc) · 2.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
---
version: "3"
services:
exelearning-web:
image: ghcr.io/exelearning/exelearning-web:${EXELEARNING_WEB_CONTAINER_TAG}
build: ${EXELEARNING_WEB_SOURCECODE_PATH:-} # If EXELEARNING_WEB__SOURCECODE_PATH is not defined, skip build
ports:
- ${APP_PORT}:8080
restart: unless-stopped # Restart the container unless it is stopped manually
volumes:
- mnt-data:/mnt/data:rw # Mount the volume for persistent data
environment:
APP_ENV: ${APP_ENV}
APP_DEBUG: ${APP_DEBUG}
XDEBUG_MODE: ${XDEBUG_MODE}
APP_SECRET: ${APP_SECRET}
PRE_CONFIGURE_COMMANDS:
POST_CONFIGURE_COMMANDS: |
echo "this is a test line 1"
echo "this is a test line 2"
php bin/console app:create-user ${TEST_USER_EMAIL} ${TEST_USER_PASSWORD} ${TEST_USER_USERNAME} --no-fail
moodle:
image: erseco/alpine-moodle
restart: unless-stopped
environment:
LANG: es_ES.UTF-8
LANGUAGE: es_ES:es
SITE_URL: http://localhost
DB_TYPE: mariadb
DB_HOST: db
DB_PORT: 3306
DB_NAME: moodle
DB_USER: root
DB_PASS: moodle
DB_PREFIX: mdl_
DEBUG: true
MOODLE_EMAIL: ${TEST_USER_EMAIL}
MOODLE_LANGUAGE: es
MOODLE_SITENAME: Moodle-eXeLearning
MOODLE_USERNAME: ${TEST_USER_USERNAME}
MOODLE_PASSWORD: ${TEST_USER_PASSWORD}
PRE_CONFIGURE_COMMANDS: |
echo 'This is a pre-configure command'
POST_CONFIGURE_COMMANDS: |
echo 'This is a post-configure command'
echo 'Forcing upgrade to re-install exe plugin...'
php admin/cli/upgrade.php --non-interactive
php admin/cli/cfg.php --component=exeweb --name=exeonlinebaseuri --set=http://localhost:${APP_PORT}
php admin/cli/cfg.php --component=exeweb --name=hmackey1 --set=${APP_SECRET}
ports:
- 80:8080
volumes:
- moodledata:/var/www/moodledata
- moodlehtml:/var/www/html
- ./:/var/www/html/mod/exeweb:rw # Mount local plugin on the container
depends_on:
- db
db:
image: mariadb:10.6.7
restart: unless-stopped # Restart the container unless it is stopped manually
environment:
MYSQL_DATABASE: moodle
MYSQL_ROOT_PASSWORD: moodle
volumes:
- dbdata:/var/lib/mysql
phpmyadmin:
image: phpmyadmin
ports:
- 8002:80 # Maps the host's port 8002 to the container's port 80
environment:
PMA_HOST: db
PMA_USER: root
PMA_PASSWORD: moodle
UPLOAD_LIMIT: 300M
depends_on:
- db
volumes:
dbdata:
mnt-data:
moodledata:
moodlehtml: