-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
147 lines (140 loc) · 5.89 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
version: "2"
services:
# mariadb:
# image: mariadb:latest
# environment:
# MYSQL_ROOT_PASSWORD: secret-pw
# MYSQL_DATABASE: moodle
# MYSQL_USER: moodle
# MYSQL_PASSWORD: moodle
## command: --default-character-set=utf8mb4 --innodb_file_format=Barracuda --innodb_file_per_table=1 --innodb_large_prefix --character-set-client-handshake=FALSE --character-set-server=utf8mb4 --collation_server=utf8mb4_unicode_ci --default-character-set=utf8mb4
## command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci # The simple way to override the mariadb config.
# command: --character-set-client-handshake=FALSE --character-set-server=utf8mb4 --collation_server=utf8mb4_unicode_ci
# volumes:
# - mysql:/var/lib/mysql
# - ./mysql/config:/etc/mysql/conf.d
## - ./docker-runtime/mariadb-init:/docker-entrypoint-initdb.d # Place init .sql file(s) here.
# ports:
# - "3000:3306"
postgres:
image: postgres:13
environment:
POSTGRES_USER: moodle
POSTGRES_PASSWORD: moodle
POSTGRES_DB: moodle
volumes:
- postgres:/var/lib/postgresql
ports:
- "5432:5432"
# # PHP in a folder
# php:
# # build: ./dockerphp # Use together with "image" when creating a new image or updating existing
# # Moodle in a folder
# image: moodle310folder
# volumes:
# - moodledata:/var/www/moodledata
# - ./moodleupload:/moodleupload
# - moodle:/var/www/html/moodle
# - ./configs/php/php.ini:/usr/local/etc/php/php.ini
# # Comment out for fresh install
# - ./moodleconfig/config.php:/var/www/html/moodle/config.php
# - ./mod/hvp:/var/www/html/moodle/mod/hvp
# expose:
# - "9001"
#
# nginx:
# image: nginx
# depends_on:
# - php
# volumes:
# - ./configs/nginx/default.conf:/etc/nginx/conf.d/default.conf
# # From php
# - moodledata:/var/www/moodledata
# - ./moodleupload:/moodleupload
# - moodle:/var/www/html/moodle
# #Comment out for fresh install
# - ./moodleconfig/config.php:/var/www/html/moodle/config.php
# - ./mod/hvp:/var/www/html/moodle/mod/hvp
# ports:
# - "80:80"
php:
build: ./dockerphp # Use together with "image" when creating a new image or updating existing
# Moodle in a folder
# image: moodle310folder
volumes:
- moodledata:/var/www/moodledata
- ./moodleupload:/moodleupload
- moodle:/var/www/html
# - ./dockerphp/moodlegit/mod/lti:/var/www/html/mod/lti
- ./configs/php/99-xdebug.ini:/usr/local/etc/php/conf.d/99-xdebug.ini
- ./configs/php/php.ini:/usr/local/etc/php/php.ini
# - ./skipCronCssRebuild/build_installed_themes_task.php:/var/www/html/lib/classes/task/build_installed_themes_task.php
# Comment out for fresh install
- ./moodleconfig/config.php:/var/www/html/config.php
# - ./mod/hvp:/var/www/html/mod/hvp
# >> - ./privacyutils/exportdata.php:/var/www/html/exportdata2.php
# - ./privacyutils/compliance.php:/var/www/html/compliance2.php
# ATTO plugin
# - ./mod/atto_hvp:/var/www/html/lib/editor/atto/plugins/hvp
# - ./attoplugins/moodle-atto_morefontcolors:/var/www/html/lib/editor/atto/plugins/morefontcolors
# - ./attoplugins/atto_styles:/var/www/html/lib/editor/atto/plugins/styles
# Filters
# - ./filters/h5p:/var/www/html/filter/h5p
# Comment in to add custom theme
#- ./themes/h5pmods-moodle-plugin:/var/www/html/theme/h5pmod
# - ./themes/moove:/var/www/html/theme/moove
# - ./themes/fordson:/var/www/html/theme/fordson
# Comment in to test moodle code quality tools
- ./moodlehq/moodle-plugin-ci:/var/www/mpc/
# - ./codechecker/local/codechecker:/var/www/html/local/codechecker
# Data privacy plugin for Moodle versions that does not have it
# - ./mod/tool_dataprivacy:/var/www/html/admin/tool/dataprivacy
# Debugging code for LTI
# - ./dockerphp/moodlegit/mod/lti:/var/www/html/mod/lti
# - xdebugprofiles:/xdebugprofiles/
expose:
- "9001"
nginx:
image: nginx
depends_on:
- php
volumes:
- ./configs/nginx/default.conf:/etc/nginx/conf.d/default.conf
# From php
- moodledata:/var/www/moodledata
- ./moodleupload:/moodleupload
- moodle:/var/www/html
# - ./skipCronCssRebuild/build_installed_themes_task.php:/var/www/html/lib/classes/task/build_installed_themes_task.php
#Comment out for fresh install
- ./moodleconfig/config.php:/var/www/html/config.php
# - ./mod/hvp:/var/www/html/mod/hvp
# - ./configs/php/php.ini:/usr/local/etc/php/php.ini
# - ./privacyutils/exportdata.php:/var/www/html/exportdata2.php
# - ./privacyutils/compliance.php:/var/www/html/compliance2.php
# ATTO plugin
# - ./mod/atto_hvp:/var/www/html/lib/editor/atto/plugins/hvp
# - ./attoplugins/moodle-atto_morefontcolors:/var/www/html/lib/editor/atto/plugins/morefontcolors
# - ./attoplugins/atto_styles:/var/www/html/lib/editor/atto/plugins/styles
# Filters
# - ./filters/h5p:/var/www/html/filter/h5p
# Comment in to add custom theme
#- ./themes/h5pmods-moodle-plugin:/var/www/html/theme/h5pmod
# - ./themes/moove:/var/www/html/theme/moove
# - ./themes/fordson:/var/www/html/theme/fordson
# Certificates
# - ./sslcertificates:/sslcertificates
# Data privacy plugin for Moodle versions that does not have it
# - ./mod/tool_dataprivacy:/var/www/html/admin/tool/dataprivacy
# Comment in to test moodle code quality tools
# - ./codechecker/local/codechecker:/var/www/html/local/codechecker
# Debugging code for LTI
# - ./dockerphp/moodlegit/mod/lti:/var/www/html/mod/lti
ports:
- "80:80"
# - "443:443"
volumes:
postgres:
moodle:
moodledata:
xdebugprofiles:
mysql: