forked from jda/docker-moodle
-
Notifications
You must be signed in to change notification settings - Fork 56
/
docker-compose.yml
45 lines (42 loc) · 942 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
version: '3'
services:
dbapp:
image: mysql:5
restart: always
volumes:
- db-volume:/var/lib/mysql
env_file:
- moodle_variables.env
networks:
- backendDB
deploy:
replicas: 1
restart_policy:
condition: on-failure
moodleapp:
image: jhardison/moodle:latest
links:
- dbapp:DB
depends_on:
- dbapp
restart: always
volumes:
- moodleapp-data:/var/moodledata
ports:
- 80:80
- 443:443
env_file:
- moodle_variables.env
networks:
- backendDB
- frontendWEB
deploy:
replicas: 1
restart_policy:
condition: on-failure
volumes:
db-volume:
moodleapp-data:
networks:
backendDB:
frontendWEB: