-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.yml
executable file
·141 lines (132 loc) · 4.3 KB
/
base.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
version: "3.5"
services:
# Following webserver was provided by MoodleHQ.
#
# webserver:
# image: "moodlehq/moodle-php-apache:${MOODLE_DOCKER_PHP_VERSION}"
# depends_on:
# - db
# volumes:
# - "${MOODLE_DOCKER_WWWROOT}:/var/www/html"
# - "${ASSETDIR}/web/apache2_faildumps.conf:/etc/apache2/conf-enabled/apache2_faildumps.conf"
# environment:
# MOODLE_DOCKER_DBTYPE: pgsql
# MOODLE_DOCKER_DBNAME: moodle
# MOODLE_DOCKER_DBUSER: moodle
# MOODLE_DOCKER_DBPASS: "m@0dl3ing"
# MOODLE_DOCKER_BROWSER: firefox
# MOODLE_DOCKER_WEB_HOST: "${MOODLE_DOCKER_WEB_HOST}"
webserver:
build:
context: ./dockerfiles
dockerfile: nginx.docker
args:
CONTAINER_USER_ID: "$DOCKER_UID"
CONTAINER_GROUP_ID: "$DOCKER_GID"
image: monash/moodle-webserver:latest
volumes:
- "${MOODLE_DOCKER_WWWROOT}:/var/www/html"
- "${MOODLE_DOCKER_MOODLEDATAROOT}:/var/www/moodledata"
- "${MOODLE_DOCKER_PHPUNITDATAROOT}:/var/www/phpunitdata"
- "${MOODLE_DOCKER_BEHATDATAROOT}:/var/www/behatdata"
- "${MOODLE_DOCKER_BEHATFAILDUMPSDATAROOT}:/var/www/behatfaildumps"
- "${MOODLE_DOCKER_WEBSERVERLOGS}/access.log:/var/log/nginx/access.log"
- "${MOODLE_DOCKER_WEBSERVERLOGS}/error.log:/var/log/nginx/error.log"
- "./nginx/moodle.conf:/etc/nginx/conf.d/default.conf"
- "./nginx/mailhog.conf:/etc/nginx/conf.d/mailhog.conf"
- "./nginx/jenkins.conf:/etc/nginx/conf.d/jenkins.conf"
depends_on:
- db
environment:
MOODLE_DOCKER_DBTYPE: pgsql
MOODLE_DOCKER_DBNAME: moodle
MOODLE_DOCKER_DBUSER: moodle
MOODLE_DOCKER_DBPASS: "m@0dl3ing"
MOODLE_DOCKER_BROWSER: firefox
MOODLE_DOCKER_WEB_HOST: webserver.localdomain
networks:
moodle:
aliases:
- mailhog
- jenkins
phpfpm:
build:
context: ./dockerfiles
dockerfile: phpfpm.docker
args:
CONTAINER_USER_ID: "$DOCKER_UID"
CONTAINER_GROUP_ID: "$DOCKER_GID"
MOODLE_DOCKER_PHP_VERSION: 7.2
image: monash/moodle-phpfpm:latest
ports:
- "9000:9000"
volumes:
- "${MOODLE_DOCKER_WWWROOT}:/var/www/html"
- "${MOODLE_DOCKER_MOODLEDATAROOT}:/var/www/moodledata"
- "${MOODLE_DOCKER_PHPUNITDATAROOT}:/var/www/phpunitdata"
- "${MOODLE_DOCKER_BEHATDATAROOT}:/var/www/behatdata"
- "${MOODLE_DOCKER_BEHATFAILDUMPSDATAROOT}:/var/www/behatfaildumps"
- "./php/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini"
environment:
MOODLE_DOCKER_DBTYPE: pgsql
MOODLE_DOCKER_DBNAME: moodle
MOODLE_DOCKER_DBUSER: moodle
MOODLE_DOCKER_DBPASS: "m@0dl3ing"
MOODLE_DOCKER_BROWSER: firefox
MOODLE_DOCKER_WEB_HOST: webserver.localdomain
CONTAINER_USER_ID: "$DOCKER_UID"
CONTAINER_GROUP_ID: "$DOCKER_GID"
networks:
- moodle
db:
build:
context: ./dockerfiles
dockerfile: postgres.docker
args:
CONTAINER_USER_ID: "$DOCKER_UID"
CONTAINER_GROUP_ID: "$DOCKER_GID"
MOODLE_DOCKER_POSTGRES_VERSION: 9.5
image: monash/moodle-postgres:latest
ports:
- "5432:5432"
environment:
POSTGRES_USER: moodle
POSTGRES_PASSWORD: "m@0dl3ing"
POSTGRES_DB: moodle
volumes:
- "${MOODLE_DOCKER_POSTGRESDATAROOT}:/var/lib/postgresql/data"
networks:
- moodle
exttests:
image: moodlehq/moodle-exttests
selenium:
image: "selenium/standalone-firefox${MOODLE_DOCKER_SELENIUM_SUFFIX}:2.53.1"
volumes:
- "${MOODLE_DOCKER_WWWROOT}:/var/www/html:ro"
networks:
- moodle
mailhog:
image: mailhog/mailhog
networks:
- moodle
# If local jenkins needed.
# jenkins:
# build:
# context: ./dockerfiles
# dockerfile: jenkins.docker
# args:
# CONTAINER_USER_ID: "$DOCKER_UID"
# CONTAINER_GROUP_ID: "$DOCKER_GID"
# image: monash/moodle-jenkins:latest
# ports:
# - '8080:8080'
# environment:
# - host_dir=/path/to/jenkins/data
# volumes:
# - "${MOODLE_DOCKER_JENKINSDATAROOT}:/var/jenkins_home"
# - "/var/run/docker.sock:/var/run/docker.sock"
# networks:
# - moodle
networks:
moodle:
name: localdomain