forked from ubc/moodle-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (72 loc) · 2.05 KB
/
docker-compose.yml
File metadata and controls
72 lines (72 loc) · 2.05 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
version: '2'
services:
db:
image: mariadb:10.4
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=moodle
- MYSQL_USER=moodle
- MYSQL_PASSWORD=password
volumes:
- ./.data/db:/var/lib/mysql
ports:
- 3306:3306
web:
image: nonroot-moodle:3.6.4
build: .
depends_on:
- db
- redis
ports:
- 8080:8080
# use the links section if you want to use a container for a database.
# if not, and you want to use an external database server, configure
# if with the environment variables in the 'environment' section.
# see README.md for more details.
links:
- db
# uncomment the 'volumes' section to enable a shared volume with docker-compose
volumes:
- ./.data/web/temp:/moodledata/temp:rw
- ./.data/web/filedir:/moodledata/filedir:rw
# do not uncomment this when starting a new instance from scratch as
# init script won't be able to move this file
#- ./LocalSettings.php:/var/www/html/LocalSettings.php
environment:
- PHP_LOG_ERRORS=on
- PHP_ERROR_LOG=/dev/stderr
- MOODLE_DB_TYPE=mariadb
- MOODLE_DB_HOST=db
#- MOODLE_DB_PORT=
- MOODLE_DB_NAME=moodle
- MOODLE_DB_USER=moodle
- MOODLE_DB_PASSWORD=password
- MOODLE_DB_PREFIX=
- MOODLE_URL=http://localhost:8080
#- MOODLE_SITE_FULLNAME=
#- MOODLE_SITE_SHORTNAME=
- MOODLE_SITE_LANG=fr
#- MOODLE_ADMIN_USER=
#- MOODLE_ADMIN_PASS=
#- MOODLE_ADMIN_EMAIL=
#- MOODLE_UPDATE=
#- MOODLE_SSL_PROXY=false
#- REDIS_HOST=redis
#- REDIS_PORT=6379
#- REDIS_DB=0
#- REDIS_PASSWORD=
#- REDIS_PREFIX=''
- MOODLE_DISABLE_UPDATE_AUTODEPLOY=true
#- MOODLE_DEBUG=true
#- SMTP_HOST=example.com:465
#- SMTP_USER=test
#- SMTP_PASS=testpass
#- SMTP_SECURITY=ssl
#- SMTP_AUTH_TYPE=PLAIN
#- MOODLE_NOREPLY_ADDRESS=test@example.com
redis:
image: redis:5.0-alpine
volumes:
- ./.data/redis:/data
#ports:
# - 6379:6379