Repository navigation
Expand file tree
/
Copy pathproject.env.example
More file actions
56 lines (47 loc) · 1.7 KB
/
Copy pathproject.env.example
File metadata and controls
56 lines (47 loc) · 1.7 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
# Example /var/www/<slug>/.env generated by deploy-moodle.sh
# (slug=lms, container PostgreSQL). All values are fake.
# This header is absent from the real file, which starts with SITE_HOST.
# AUTH_* is included only with --enable-basic-auth,
# MOODLE_ADMIN_* is appended only after successful CLI installation,
# BACKUP_ARCHIVE_PATH is included only with --create-backup,
# SMTP_* only with --smtp-host. The resource profile has PG_* and DB_SHM_SIZE for container
# PostgreSQL, MYSQL_INNODB_BUFFER_POOL_SIZE for container MySQL, and neither for native databases.
# MySQL uses DB_MYSQL_NAME, DB_MYSQL_USER instead of DB_POSTGRES_*,
# DB_MYSQL_PASSWORD, DB_MYSQL_PASSWORD_ROOT.
SITE_HOST=lms.example.com
SITE_SCHEME=https
SITE_PORT_HTTP=8247
SITE_PORT_HTTPS=4189
PHP_PORT=9347
REDIS_PORT=6612
REDIS_PASSWORD=ChangeMe_Redis1
DB_PORT=5623
DB_POSTGRES_NAME=k7x2m9q4p5w8z3a
DB_POSTGRES_USER=n6v8c2b4m9k7p3r
DB_POSTGRES_PASSWORD=ChangeMe_Pg_001
DB_NATIVE=false
PHP_VERSION=83
MOODLE_VERSION=4.5.15
# Resource profile: edit the values below, then run docker compose up -d
MOOSHIP_PROFILE=medium
PHP_FPM_MAX_CHILDREN=16
PHP_FPM_START_SERVERS=4
PHP_FPM_MIN_SPARE_SERVERS=2
PHP_FPM_MAX_SPARE_SERVERS=8
PG_SHARED_BUFFERS=512MB
PG_EFFECTIVE_CACHE_SIZE=1536MB
PG_WORK_MEM=16MB
PG_MAINTENANCE_WORK_MEM=128MB
DB_SHM_SIZE=512mb
# Outgoing mail; the SMTP password is stored only in Moodle's settings
SMTP_HOST=smtp.example.com:587
SMTP_SECURE=tls
SMTP_USER=lms@example.com
AUTH_USER=reviewer
AUTH_PASSWORD=ChangeMe_Basic1
# Moodle Administrator Credentials
MOODLE_ADMIN_USER=admin
MOODLE_ADMIN_PASSWORD=ChangeMe_Adm_01
MOODLE_ADMIN_EMAIL=admin@lms.example.com
# Backup Archive
BACKUP_ARCHIVE_PATH=/var/backups/mooship/lms_20260927_101500.tar.gz