-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.testing.yml
49 lines (44 loc) · 1.3 KB
/
docker-compose.testing.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
version: "2"
services:
postgres:
image: postgres:9.6.3
environment:
POSTGRES_USER: moodle
POSTGRES_PASSWORD: moodle
POSTGRES_DB: moodle
volumes:
- testing_postgres:/var/lib/postgresql
ports:
- "5433:5432"
php:
# image: moodle30 # install script does not work on this one
# image: moodle32:latest # Earlier versions must use earlier php versions..
image: moodle391:latest
# image: moodle38dev:latest
# image: moodle33 # Moodle 3.3
# image: moodle37:latest
# image: moodle35:latest
volumes:
- testing_moodledata:/var/www/moodledata
- ./moodleupload:/moodleupload
- testing_moodle:/var/www/html
- ./configs/php/php.ini:/usr/local/etc/php/php.ini
# - ./moodleconfig/config.testing.php:/var/www/html/config.php/
# - ./mod/hvp:/var/www/html/mod/hvp
nginx:
image: nginx
depends_on:
- php
volumes:
- ./configs/nginx/default.testing.conf:/etc/nginx/conf.d/default.conf
- testing_moodledata:/var/www/moodledata
- ./moodleupload:/moodleupload
- testing_moodle:/var/www/html
# - ./moodleconfig/config.testing.php:/var/www/html/config.php/
# - ./mod/hvp:/var/www/html/mod/hvp
ports:
- "86:86"
volumes:
testing_postgres:
testing_moodle:
testing_moodledata: