-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
80 lines (79 loc) · 1.93 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
services:
moodle:
build:
context: .
dockerfile: moodle/Dockerfile
target: ${MOODLE_TARGET:-dev}
volumes: &moodlevolumes
- moodledata:/var/www/moodledata
- ./plugins/report_raisespikes:/var/www/html/report/raisespikes
- ./plugins/local_persist:/var/www/html/local/persist
- .:/repo
networks:
- raisemoodle
environment: &moodleenv
MOODLE_DOCKER_DBHOST: postgres
MOODLE_DOCKER_DBNAME: $POSTGRES_DB
MOODLE_DOCKER_DBUSER: $POSTGRES_USER
MOODLE_DOCKER_DBPASS: $POSTGRES_PASSWORD
MOODLE_DOCKER_WWWROOT: http://localhost:8000
MOODLE_DOCKER_DATAROOT: /var/www/moodledata
MOODLE_DOCKER_SMTPHOST: mailhog:1025
ports:
- 8000:80
depends_on:
- postgres
entrypoint: ["./wait-for-it.sh", "postgres:5432"]
command: ["--", "docker-php-entrypoint", "apache2-foreground"]
extra_hosts:
- "host.docker.internal:host-gateway"
cron:
build:
context: .
dockerfile: moodle/Dockerfile
command: /bin/bash -c "printenv | grep MOODLE > /etc/environment; cron -f"
volumes: *moodlevolumes
networks:
- raisemoodle
environment: *moodleenv
depends_on:
- moodle
contentapi:
build:
context: services/contentapi
volumes:
- ./services/contentapi/content:/content
networks:
- raisemoodle
ports:
- 8800:80
postgres:
image: "postgres:13"
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- raisemoodle
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
pgadmin:
image: "dpage/pgadmin4"
networks:
- raisemoodle
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: root
ports:
- "5050:80"
mailhog:
image: mailhog/mailhog
networks:
- raisemoodle
ports:
- 8025:8025
networks:
raisemoodle:
volumes:
pgdata:
moodledata: