-
Notifications
You must be signed in to change notification settings - Fork 17
/
compose.yaml
42 lines (41 loc) · 973 Bytes
/
compose.yaml
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
include:
- mariadb.service.yaml
# - postgres.service.yaml
# - compose.local.yaml
services:
nginx-proxy:
image: nginxproxy/nginx-proxy
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./nginx_proxy.conf:/etc/nginx/conf.d/nginx_proxy.conf:ro
networks:
- devbox
moodle:
image: moodlehq/moodle-php-apache:$MOODLE_DOCKER_PHP_VERSION
volumes:
- moodledata:/var/www/moodledata
- $MOODLE_DOCKER_WWWROOT:/var/www/html
depends_on:
- mariadb
environment:
- VIRTUAL_HOST=moodle.local
networks:
- devbox
mail:
image: axllent/mailpit:latest
ports:
- 8025:8025
networks:
- devbox
volumes:
moodledata:
external: true
networks:
devbox:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.31.0.0/16