forked from jmhardison/docker-moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (51 loc) · 1.38 KB
/
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
48
49
50
51
52
53
54
version: '3'
services:
dbapp:
image: mysql:5
container_name: moodleDB_setName
restart: on-failure
volumes:
- db-volume:/var/lib/mysql
- ./dbDump.sql:/docker-entrypoint-initdb.d/dbDump.sql
- ./newDump.sql:/tmp/newDump.sql
env_file:
- moodle_variables.env
networks:
- backendDB
deploy:
replicas: 1
restart_policy:
condition: on-failure
moodleapp:
image: jhardison/moodle:latest
container_name: moodleApp_setName
links:
- dbapp:DB
depends_on:
- dbapp
restart: on-failure
volumes:
- moodleapp-data:/var/moodledata
- ./foreground.sh:/etc/apache2/foreground.sh
- ./moodle-config.php:/var/www/html/config.php
- ./moodle-files/moodle:/var/www/html
- ./logs/error.log:/var/log/apache2/error.log
- ./logs/access.log:/var/log/apache2/access.log
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: