forked from chintakjoshi/moodle-docker-local
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
66 lines (66 loc) · 1.92 KB
/
docker-compose.yml
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
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: lthub/moodle
build: .
ports:
- 8080:80
# 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:/moodledata: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:
- 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=
#- MOODLE_ADMIN_USER=
#- MOODLE_ADMIN_PASS=
#- MOODLE_ADMIN_EMAIL=
#- MOODLE_UPDATE=
#- MOODLE_REVERSE_PROXY=false
#- MOODLE_SSL_PROXY=false
- MOODLE_REDIS_HOST=redis
- MOODLE_REDIS_PORT=6379
- MOODLE_REDIS_DB=0
#- MOODLE_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
redis:
image: redis:5.0-alpine
volumes:
- ./.data/redis:/data
ports:
- 6379:6379