forked from catalyst/docker_moodle
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
48 lines (45 loc) · 871 Bytes
/
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
version: '3'
networks:
moodle:
services:
moodle:
build: ./docker/moodle
ports:
- "127.0.0.1:80:80"
- "127.0.0.1:443:443"
volumes:
- ./siteroot:/var/www/html
depends_on:
- mailhog
networks:
- moodle
db:
image: postgres:9.6
environment:
PHP_EXTENTION_XDEBUG: 1
POSTGRES_PASSWORD: password
POSTGRES_DB: moodle
POSTGRES_USER: moodle_user
volumes:
- 'db:/var/lib/postgresql/data'
networks:
- moodle
test-db:
image: postgres:9.6
environment:
POSTGRES_PASSWORD: password
POSTGRES_DB: moodle
POSTGRES_USER: moodle_user
volumes:
- 'testdb:/var/lib/postgresql/data'
networks:
- moodle
mailhog:
image: mailhog/mailhog
ports:
- "127.0.0.1:1025:8025"
networks:
- moodle
volumes:
db:
testdb: