-
-
Notifications
You must be signed in to change notification settings - Fork 135
/
.env.example
262 lines (176 loc) · 5.69 KB
/
.env.example
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
# 本项目全局变量
# 是否为国内环境,默认为 true,当处于非国内环境(例如:GitHub Actions)时请改为 false
LNMP_CN_ENV=true # true or false
# end
# https://docs.docker.com/compose/reference/envvars/
# [compose]
# compose 相关变量可以在环境变量中设置也可以在 .env 文件中设置
# 如果你要在同一主机运行多个 LNMP 可以将 COMPOSE_PROJECT_NAME 设为不同的值
# 并保证服务的端口不要冲突
COMPOSE_PROJECT_NAME=lnmp
# []
APP_ENV=development
APP_ROOT=./app
# APP_ROOT=../app
# 项目存储在 WSL2
# 格式 APP_ROOT=\\wsl$\<your dist>\<wsl2 path>
# APP_ROOT=\\wsl$\debian\app
################################################################################
# [services]
LNMP_SERVICES="nginx mysql php8 redis"
# Available soft
# LNMP_SERVICES="nginx mysql php8 redis \
# workspace
# vscode-remote-container-workspace \
# php7 \
# mariadb memcached rabbitmq \
# phpmyadmin \
# postgresql mongodb \
# httpd registry \
# minio \
# minio-old \
# supervisord \
# nginx-unit \
# kong postgresql-kong konga \
# "
# [lrew]
LREW_INCLUDE="minio"
# LREW_INCLUDE="pcit minio"
################################################################################
# [PCIT]
LNMP_PCIT_PORT=10000
# Project Domain
LNMP_DOMAIN=com.khs1994.lnmp
# LNMP_DOMAIN=com.domain.lnmp
# [ClusterKit]
CLUSTERKIT_REDIS_HOST=
CLUSTERKIT_REDIS_NODES=
# CLUSTERKIT_REDIS_NODES=192.168.199.100:7001 192.168.199.100:7002 192.168.199.100:7003 192.168.199.100:8001 192.168.199.100:8002 192.168.199.100:8003
CLUSTERKIT_REDIS_S_HOST=
CLUSTERKIT_REDIS_M_S_HOST=
CLUSTERKIT_MYSQL_HOST=
# [dns]
DNS=114.114.114.114
# DNS=8.8.8.8
# [acme.sh]
# SSL Powered By acme.sh
# https://github.com/acmesh-official/acme.sh/tree/master/dnsapi
DNS_TYPE=dns_dp
# DNS_TYPE=
## [DNSPOD]
DP_Id=
DP_Key=
# [NGINX]
LNMP_NGINX_HTTPS_PORT=0.0.0.0:443
LNMP_NGINX_HTTP_PORT=0.0.0.0:80
# [MySQL]
# [MariaDB]
LNMP_MYSQL_PORT=127.0.0.1:3306
# LNMP_MYSQL_PORT=0.0.0.0:3306
LNMP_MYSQL_PORT_X=127.0.0.1:33060
# LNMP_MYSQL_PORT_X=0.0.0.0:33060
# [Redis]
LNMP_REDIS_PORT=127.0.0.1:16379
# LNMP_REDIS_PORT=0.0.0.0:16379
# [Memcached]
LNMP_MEMCACHED_PORT=127.0.0.1:11211
# LNMP_MEMCACHED_PORT=0.0.0.0:11211
# [PHPMyAdmin]
LNMP_PHPMYADMIN_PORT=127.0.0.1:8080
# LNMP_PHPMYADMIN_PORT=0.0.0.0:8080
# LNMP_PHPMYADMIN_PORT=0.0.0.0:8081
# [TimeZone]
TZ=Asia/Shanghai
# [Version]
# https://nginx.org/en/CHANGES
LNMP_NGINX_VERSION=1.27.0
LNMP_MYSQL_VERSION=8.0.33
# latest php version
LNMP_PHP_VERSION=8.3.12
# LNMP_PHP_VERSION=nightly
# PHP EOL VERSION
LNMP_PHP5_VERSION=5.6.37
LNMP_PHP56_VERSION=5.6.37
LNMP_PHP7_VERSION=7.4.33
LNMP_PHP70_VERSION=7.0.33
LNMP_PHP71_VERSION=7.1.33
LNMP_PHP72_VERSION=7.2.34
LNMP_PHP73_VERSION=7.3.33
LNMP_PHP74_VERSION=7.4.33
# PHP EOL VERSION END
# latest php version
LNMP_PHP8_VERSION=8.3.12
LNMP_PHP80_VERSION=8.0.30
LNMP_PHP81_VERSION=8.1.31
LNMP_PHP82_VERSION=8.2.26
LNMP_PHP83_VERSION=8.3.12
LNMP_REDIS_VERSION=7.0.0
LNMP_MEMCACHED_VERSION=1.6.15
LNMP_PHPMYADMIN_VERSION=5.2.0
LNMP_NODE_VERSION=20.5.1
# [CONF FILE NAME]
#
# 复制示例配置文件,并在最后一个点之前加上前缀(例如 .my)
# LNMP_MYSQL_DATA=/var/lib/mysql-my
# LNMP_DB_ROOT_PASSWORD_PATH=db.my.txt
# LNMP_NGINX_CONF=nginx.my.conf
# LNMP_NGINX_CONF_D=nginx.my
# LNMP_NGINX_UNIT_CONF=nginx-unit.my
# S6_RC_D=s6-rc.d
# [Docker 镜像前缀(非 library 命名空间下的镜像)]
LNMP_DOCKER_IMAGE_PREFIX=khs1994
# LNMP_DOCKER_IMAGE_PREFIX=lrew
# LNMP_DOCKER_IMAGE_PREFIX=ccr.ccs.tencentyun.com/your-company
# LNMP_DOCKER_IMAGE_PREFIX=pcit-docker.pkg.coding.net/khs1994-docker/khs1994
# [library 命名空间的 mirror]
LNMP_LIBRARY_NS=library
# LNMP_LIBRARY_NS=library-mirror
# LNMP_LIBRARY_NS=ccr.ccs.tencentyun.com/library-mirror
# LNMP_LIBRARY_NS=pcit-docker.pkg.coding.net/khs1994-docker/library
# LNMP_LIBRARY_NS=hub.atomgit.com
# [其他镜像]
# LNMP_LREW_MIRROR_MINIO=minio
# LNMP_LREW_MIRROR_MINIO=ccr.ccs.tencentyun.com/khs1994
## [PHP 项目文件路径(容器内路径)(绝对路径)]
LNMP_PHP_PATH=/app
# LNMP_PHP_PATH=/Users/khs1994/khs1994-lnmp/app
# LNMP_PHP_PATH=/var/www/html
# [NFS VOLUME CONFIG]
NFS_DEVICE=192.168.199.100:/
NFS_O=addr=192.168.199.100,vers=4,soft,timeo=180,bg,tcp,rw
# [Database Backup commands]
LNMP_BACKUP_COMMANDS="--database test"
# [xdebug]
# docker desktop
# LNMP_XDEBUG_REMOTE_HOST=host.docker.internal
# https://github.com/moby/moby/pull/40007
# docker for Linux replace 192.168.199.100 with your real ip
# LNMP_XDEBUG_REMOTE_HOST=192.168.199.100
# LNMP_XDEBUG_REMOTE_HOST=wsl2.lnmp.khs1994.com
LNMP_XDEBUG_REMOTE_HOST=host.docker.internal
# LNMP_XDEBUG_CLIENT_HOST=
LNMP_XDEBUG_REMOTE_PORT=9003
# LNMP_XDEBUG_CLIENT_PORT=9003
# [opcache]
LNMP_OPCACHE_ENABLE=1
# LNMP_OPCACHE_ENABLE=0
# [node]
# use by lnmp-npm
LNMP_NODE_IMAGE=node:alpine
# LNMP_NODE_IMAGE=khs1994/node:git
LNMP_ROOT_FILESYSTEM_READ_ONLY=false
# [MySQL]
LNMP_MYSQL_ROOT_PASSWORD=mytest
LNMP_MYSQL_DATABASE=test
# [restart]
# no | always | on-failure | unless-stopped
LNMP_RESTART=always
# always
# 执行 docker stop => 不重启 | 重启 daemon => 重启
# on-failure
# exit 0 => 不重启 | 重启 daemon => 不重启
# exit 非0 => 重启 | 执行 docker stop => 不重启 | 重启 daemon => 重启
# unless-stopped 不管退出状态码是什么始终重启容器,
# 不过当daemon启动时,如果容器之前已经为停止状态,不要尝试启动它
########################## Don't Edit #############################
LNMP_VERSION=