-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
74 lines (70 loc) · 1.8 KB
/
docker-compose.yml
File metadata and controls
74 lines (70 loc) · 1.8 KB
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
---
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
moodle:
image: erseco/alpine-moodle
build:
context: .
args:
# To use a specific Moodle version, set MOODLE_VERSION to git release tag.
# You can find the list of available tags at:
# https://api.github.com/repos/moodle/moodle/tags
#
# Example:
# MOODLE_VERSION: v4.5.3
# MOODLE_VERSION: v5.0.1
MOODLE_VERSION: main
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: user@example.com
MOODLE_LANGUAGE: en
MOODLE_SITENAME: New-Site
MOODLE_USERNAME: moodleuser
MOODLE_PASSWORD: PLEASE_CHANGEME
SMTP_HOST: smtp.gmail.com
SMTP_PORT: 587
SMTP_USER: your_email@gmail.com
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