-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathdocker-compose.yml
64 lines (60 loc) · 1.47 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
---
services:
redis:
image: redis:alpine
restart: unless-stopped
postgres:
image: postgres:alpine
restart: unless-stopped
environment:
- POSTGRES_PASSWORD=moodle
- POSTGRES_USER=moodle
- POSTGRES_DB=moodle
volumes:
- postgres:/var/lib/postgresql/data
moodle:
image: erseco/alpine-moodle
build: .
restart: unless-stopped
environment:
LANG: en_US.UTF-8
LANGUAGE: en_US:en
SITE_URL: http://localhost
DB_TYPE: pgsql
DB_HOST: postgres
DB_PORT: 5432
DB_NAME: moodle
DB_USER: moodle
DB_PASS: moodle
DB_PREFIX: mdl_
REDIS_HOST: redis
REVERSEPROXY: false
SSLPROXY: false
MOODLE_EMAIL: [email protected]
MOODLE_LANGUAGE: en
MOODLE_SITENAME: New-Site
MOODLE_USERNAME: moodleuser
MOODLE_PASSWORD: PLEASE_CHANGEME
SMTP_HOST: smtp.gmail.com
SMTP_PORT: 587
SMTP_USER: [email protected]
SMTP_PASSWORD: your_password
SMTP_PROTOCOL: tls
MOODLE_MAIL_NOREPLY_ADDRESS: noreply@localhost
MOODLE_MAIL_PREFIX: "[moodle]"
PRE_CONFIGURE_COMMANDS: |
echo 'This is a pre-configure command'
POST_CONFIGURE_COMMANDS: |
echo 'This is a post-configure command'
ports:
- 80:8080
volumes:
- moodledata:/var/www/moodledata
- moodlehtml:/var/www/html
depends_on:
- postgres
- redis
volumes:
postgres: null
moodledata: null
moodlehtml: null