-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtemplate.toml
More file actions
111 lines (95 loc) · 2.61 KB
/
Copy pathtemplate.toml
File metadata and controls
111 lines (95 loc) · 2.61 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
[variables]
main_domain = "${domain}"
ols_password = "${password:16}"
db_password = "${password:32}"
db_root_password = "${password:32}"
filebrowser_password = "${password:16}"
[config]
env = [
# Docker Compose Profiles (Enabled services)
"COMPOSE_PROFILES=mailpit",
# Database Configuration (Internal MariaDB)
"WORDPRESS_DB_HOST=mariadb",
"WORDPRESS_DB_NAME=wordpress",
"WORDPRESS_DB_USER=wordpress",
"WORDPRESS_DB_PASSWORD=${db_password}",
"MYSQL_ROOT_PASSWORD=${db_root_password}",
"MYSQL_DATABASE=wordpress",
"MYSQL_USER=wordpress",
"MYSQL_PASSWORD=${db_password}",
"MARIADB_AUTO_UPGRADE=1",
# Security & Access
"OLS_PASSWORD=${ols_password}",
"FILEBROWSER_ADMIN_PASSWORD=${filebrowser_password}",
"INSTALL_WORDPRESS=true",
"WORDPRESS_DEBUG=false",
# PHP Limits & Performance
"PHP_MAX_CONNS=15",
"WORDPRESS_MEMORY_LIMIT=256M",
"WORDPRESS_UPLOAD_LIMIT=64M",
"WORDPRESS_MAX_EXECUTION_TIME=300",
"WORDPRESS_MAX_INPUT_VARS=3000",
# Opcache Defaults (1-Day Revalidation)
"OPCACHE_ENABLE=1",
"OPCACHE_MEMORY_CONSUMPTION=256",
"OPCACHE_INTERNED_STRINGS_BUFFER=8",
"OPCACHE_MAX_ACCELERATED_FILES=15000",
"OPCACHE_REVALIDATE_FREQ=86400",
"OPCACHE_FAST_SHUTDOWN=1",
# LiteSpeed Cache - Object Cache (Valkey)
"VALKEY_HOST=valkey",
"VALKEY_PORT=6379",
"VALKEY_MAX_MEMORY=64mb",
"LITESPEED_CACHE_OBJECT_CONF=true",
"LITESPEED_CACHE_OBJECT_ENABLE=true",
"LITESPEED_CACHE_OBJECT_KIND=1",
# SMTP Relay Configuration
"SMTP_SERVER=mailpit",
"SMTP_PORT=1025",
"SMTP_USERNAME=",
"SMTP_PASSWORD=",
"SERVER_HOSTNAME=${main_domain}",
"MAIL_RELAY_HOST=mail-relay",
"MAIL_RELAY_PORT=25",
"OVERWRITE_FROM=site-admin@${main_domain}",
"SES_TENANT_TAG=your-tenant-name",
"DISABLE_WP_CRON=false",
# Performance - Compression
"GZIP_ENABLE=1",
"BROTLI_ENABLE=1"
]
[[config.domains]]
serviceName = "wordpress"
port = 80
host = "${main_domain}"
# OpenLiteSpeed WebAdmin
[[config.domains]]
serviceName = "wordpress"
port = 7080
host = "ols.${main_domain}"
# phpMyAdmin (Database Manager)
[[config.domains]]
serviceName = "phpmyadmin"
port = 80
host = "pma.${main_domain}"
# File Browser (Storage Manager)
[[config.domains]]
serviceName = "filebrowser"
port = 80
host = "files.${main_domain}"
# Dozzle (Live Logs)
[[config.domains]]
serviceName = "dozzle"
port = 8080
host = "logs.${main_domain}"
# Mailpit (Email Catcher)
[[config.domains]]
serviceName = "mailpit"
port = 8025
host = "mailpit.${main_domain}"
# Dokploy Scheduler (WordPress Cron)
[[config.schedulers]]
name = "WordPress Cron"
cron = "*/5 * * * *"
command = "php /var/www/html/wp-cron.php"
serviceName = "wordpress"