-
Notifications
You must be signed in to change notification settings - Fork 2
/
env-example
571 lines (473 loc) · 14 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
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
###
### ---------------------------------------------------
### B Y P A N E L R U N - T I M E S E T T I N G S
### ---------------------------------------------------
###
### All the following settings are applied during
### $ docker-compose up
###
### No need to rebuild any docker images!
###
### IMPORTANT:
### ----------
### When changing any values ensure to stop, rm and restart:
### $ docker-compose stop
### $ docker-compose rm -f
### $ docker-compose up
###
### NOTE:
### -----
### For you own custom variables, scroll to the bottom
###
# The following line will disable any shellcheck warnings throughout this file
# shellcheck disable=SC2034,SC2125
###
### Show all executed commands in each
### docker image during docker-compose up?
###
### 0: Errors
### 1: Errors, Warnings
### 2: Errors, Warnings, Infos (Recommended)
### 3: Errors, Warnings, Infos, Debug
### 4: Errors, Warnings, Infos, Debug, Trace
DEBUG_ENTRYPOINT=2
###
### Log to file or Docker logs.
###
### Logging to file means log files are available under log/
### on your host operating system.
### Logging to Docker logs means log files are streamed to
### stdout and stderr.
###
### 1: Log to Docker logs
### 0: Log to file
###
DOCKER_LOGS=0
###
### Set language
###
PANEL_LANG=en
###
### Startup application
###
COMPOSE_PROFILES=nginx,mysql,php83
###
### Sets the project name.
### This value is prepended along with the service name to the container on start up.
### For example, if your project name is myapp and it includes two services db and web,
### then Compose starts containers named myapp_db_1 and myapp_web_1 respectively.
###
COMPOSE_PROJECT_NAME=bypanel
### Set the network name.
### This value is sets a custom name for the network.
###
COMPOSE_NETWORK_NAME=bypanel_net
###
### Relative or absolute path to the bypanel repository.
### (Used as a prefix for all mount paths)
### There is no need to change this.
###
### The only exception is for OSX users wanting to use NFS
### mounts instead of Filesystem mounts due to degraded performance
### on OSX.
###
### Note: When changing this variable you must re-create the container.
### Simply remove it, it will be auto-created during the next start:
###
### $ docker-compose rm -f
###
BASE_PATH=/opt/bypanel
###
### Web, DB, Log base data path
###
VOLUME_PATH=/data
###
### At what IP address should the docker services listen
### on the Host computer?
###
### The specified default should be fine for Linux and OSX (127.0.0.1:).
### If you are on windows, you will probably have to change
### it to the IP address of the docker machine.
###
### a.) Leave blank, to listen on all interfaces (no trailing colon ':')
### LOCAL_LISTEN_ADDR=
### b.) If an IP is specified, note the trailing colon ':'
### LOCAL_LISTEN_ADDR=127.0.0.1:
###
LOCAL_LISTEN_ADDR=127.0.0.1:
###
### Set your user id and group id
###
### This should be changed to the value of your local
### users uid and gid
###
### Type `id` on the terminal to find out your values
###
NEW_UID=1000
NEW_GID=1000
###
### Timezone for Docker container
###
TIMEZONE=Asia/Shanghai
################################################################################
###
### 1. Choose Images (Version)
###
################################################################################
###
### You can choose any combination of nginx, mysql, postgresql or php.
### Each of them are fully compatible between one another.
###
###
### 1.1 Choose Nginx Server Image
###
NGINX_SERVER=1.26.2
#NGINX_SERVER=1.27.2
###
### 1.2 Choose MySQL Server Image
###
#MYSQL_SERVER=mysql-5.5
#MYSQL_SERVER=mysql-5.6
#MYSQL_SERVER=mysql-5.7
#MYSQL_SERVER=mysql-8.0
#MYSQL_SERVER=mysql-8.4
#MYSQL_SERVER=percona-5.5
#MYSQL_SERVER=percona-5.6
#MYSQL_SERVER=percona-5.7
#MYSQL_SERVER=percona-8.0
#MYSQL_SERVER=percona-8.4
#MYSQL_SERVER=mariadb-5.5
#MYSQL_SERVER=mariadb-10.0
#MYSQL_SERVER=mariadb-10.1
#MYSQL_SERVER=mariadb-10.2
#MYSQL_SERVER=mariadb-10.3
#MYSQL_SERVER=mariadb-10.4
#MYSQL_SERVER=mariadb-10.5
#MYSQL_SERVER=mariadb-10.6
#MYSQL_SERVER=mariadb-10.7
#MYSQL_SERVER=mariadb-10.8
#MYSQL_SERVER=mariadb-10.9
#MYSQL_SERVER=mariadb-10.10
#MYSQL_SERVER=mariadb-10.11
MYSQL_SERVER=mariadb-11.4
###
### 1.3 Choose PostgreSQL Server Image
###
### https://www.postgresql.org/support/versioning/
###
### IMPORTANT: Alpine based images might cause issues on Docker Toolbox or OSX
### https://github.com/docker/toolbox/issues/510
###
#
#
#PGSQL_SERVER=11-alpine
#PGSQL_SERVER=12-alpine
#PGSQL_SERVER=13-alpine
PGSQL_SERVER=14-alpine
#PGSQL_SERVER=15-alpine
#PGSQL_SERVER=16-alpine
###
### 1.4 Choose Redis Server Image
###
### IMPORTANT: Alpine based images might cause issues on Docker Toolbox or OSX
### https://github.com/docker/toolbox/issues/510
###
#
#
#REDIS_SERVER=3.2-alpine
#REDIS_SERVER=4.0-alpine
#REDIS_SERVER=6.2-alpine
#REDIS_SERVER=7.0-alpine
#REDIS_SERVER=7.2-alpine
REDIS_SERVER=7.4-alpine
###
### 1.5 Choose Memcached Server Image
###
### IMPORTANT: Alpine based images might cause issues on Docker Toolbox or OSX
### https://github.com/docker/toolbox/issues/510
###
#
# Memcached without arm64 support
#
#MEMCACHED_SERVER=1.4-alpine
#
# Memcached with arm64 support
#
#MEMCACHED_SERVER=1.5-alpine
MEMCACHED_SERVER=1.6-alpine
###
### 1.6 Choose Mongo Server Image
###
### https://www.mongodb.com/evolved
###
#
# MongoDB without arm64 support
#
#MONGO_SERVER=2.8
#MONGO_SERVER=3.0
#MONGO_SERVER=3.2
#
# MongoDB with arm64 support
#
#MONGO_SERVER=3.4
#MONGO_SERVER=3.6
#MONGO_SERVER=4.0
#MONGO_SERVER=4.2
#MONGO_SERVER=4.4
MONGO_SERVER=5.0
#MONGO_SERVER=6.0
#MONGO_SERVER=7.0
###
### 1.7 Choose phpMyAdmin Server Image
###
### https://www.phpmyadmin.net
###
PMA_SERVER=latest
###
### 1.8 Choose Adminer Server Image
###
### https://www.adminer.org
###
ADMINER_SERVER=latest
###
### 1.9 Choose sftpgo Server Image
###
### https://github.com/drakkan/sftpgo
###
SFTPGO_SERVER=alpine
###
### 1.10 Choose rabbitmq Server Image
###
### https://rabbitmq.com
###
#RABBITMQ_SERVER=4.0-management-alpine
RABBITMQ_SERVER=3.13-management-alpine
#RABBITMQ_SERVER=3.12-management-alpine
################################################################################
###
### 2. Host Mounts (Your computer)
###
################################################################################
###
### Global mount options
###
### Note: When adding custom mount options, ensure to start with a
### leading ',' (comma), as those options are prepended to already
### existing mount options.
###
### Note: If no mount options are specified, leave this variable empty
### and do not add a leading ',' (comma).
###
### MOUNT_OPTIONS=,cached
### MOUNT_OPTIONS=
###
### Example: Allow to share mounts accross container with SELINUX enabled
###
### MOUNT_OPTIONS=,z
###
MOUNT_OPTIONS=
################################################################################
###
### 3. PHP Docker Settings
###
################################################################################
###
### Enable certain PHP modules which are not enabled by default
###
### Currently the only modules that can be enabled are 'ioncube' and 'blackfire'
### Also ensure to disable xdebug when using any of the above:
### https://xdebug.org/docs/install#compat
###
### PHP_MODULES_ENABLE=ioncube, blackfire
###
PHP_MODULES_ENABLE=
###
### Disable any PHP modules that you don't require
###
### Specify a comma separated list without spaces of modules to disable
###
### PHP_MODULES_DISABLE=xdebug,imagick,swoole
###
PHP_MODULES_DISABLE=xdebug,imagick,memcache,memcached,redis,mongo,mongodb,msgpack,pgsql,xhprof,uploadprogress,uuid,xlswriter,yaml,amqp,apcu,oci8,pdo_oci,PDO_OCI,pdo_sqlsrv,sqlsrv,rdkafka,swoole,psr,imap,solr,pspell,phalcon
###
### Configure everything else about PHP in
### * cfg/php-ini-X.X/*.ini
### * cfg/php-fpm-X.X/*.conf
################################################################################
###
### 4. Web Docker Settings
###
################################################################################
###
### Expose Web Port to Host
###
HOST_PORT_WEB=80
HOST_PORT_WEB_SSL=443
################################################################################
###
### 5. MySQL Docker Settings
###
################################################################################
###
### MySQL root user password
###
### The password is required for the initial creation of the MySQL database
### as well as the Devilbox intranet to display schema and configuration settings.
###
### If you change your MySQL root user password via mysql cli, phpMyAdmin or other tools
### after the database has been created, ensure to adjust the value here accordingly as well.
###
### If you only change this value here after the database has been created,
### the MySQL root user password will not actually be changed and the Devilbox intranet
### won't be able to connect to the MySQL service.
###
MYSQL_ROOT_PASSWORD=bypanel
###
### Expose MySQL Port to Host
###
HOST_PORT_MYSQL=3306
################################################################################
###
### 6. PostgreSQL Docker Settings
###
################################################################################
###
### PostgreSQL 'root' user name (usually postgres)
###
PGSQL_ROOT_USER=postgres
###
### PostgreSQL 'root' user password
###
### If you want to set a password, ensure to remove 'trust' from
### PGSQL_HOST_AUTH_METHOD below
###
PGSQL_ROOT_PASSWORD=bypanel
###
### In order to not use a password for PostgreSQL, keep this value at 'trust'
###
PGSQL_HOST_AUTH_METHOD=trust
###
### Expose PostgreSQL Port to Host
###
HOST_PORT_PGSQL=5432
################################################################################
###
### 7. Redis Docker Settings
###
################################################################################
###
### Expose Redis Port to Host
###
HOST_PORT_REDIS=6379
###
### Custom startup arguments
###
### Apply custom startup arguments to redis
###
### Example: Password protection
### Add password protection to the Redis server by specifying it should
### require a password.
### Note: Do not add quotes or spaces to the password
###
### REDIS_ARGS="--requirepass my-redis-root-password"
###
### Example: Verbosity
###
### REDIS_ARGS="--loglevel verbose"
###
#REDIS_ARGS="--loglevel verbose --requirepass my-redis-root-password"
REDIS_ARGS="--appendonly yes"
################################################################################
###
### 8. Memcached Docker Settings
###
################################################################################
###
### Expose Memcached Port to Host
###
HOST_PORT_MEMCACHED=11211
################################################################################
###
### 9. MongoDB Docker Settings
###
################################################################################
###
### Expose MongoDB Port to Host
###
HOST_PORT_MONGO=27017
################################################################################
###
### 10. phpMyAdmin Docker Settings
###
################################################################################
###
### Note: PMA_ARBITRARY - when set to 1 connection to the arbitrary server will be allowed
### PMA_ABSOLUTE_URI - the full URL to phpMyAdmin. Sometimes needed when used in a reverse-proxy configuration.
###
PMA_ARBITRARY=1
PMA_ABSOLUTE_URI=/phpmyadmin
################################################################################
###
### 11. SFTPGO Docker Settings
###
################################################################################
###
### Expose SFTPGO Port to Host
###
### Note: SFTPGO_FTPD_WEB_ADMIN_PORT - create the first admin and a new SFTPGo user
### SFTPGO_FTPD_PORT - The FTP service port
### SFTPGO_FTPD_PASSIVE_PORT_RANGE_START - The FTP service passive start port
### SFTPGO_FTPD_PASSIVE_PORT_RANGE_END - The FTP service passive end port
###
SFTPGO_FTPD_WEB_ADMIN_PORT=8021
SFTPGO_FTPD_PORT=21
SFTPGO_FTPD_PASSIVE_PORT_RANGE_START=21000
SFTPGO_FTPD_PASSIVE_PORT_RANGE_END=21100
################################################################################
###
### 12. rabbitmq Docker Settings
###
################################################################################
###
### Node: HOST_PORT_RABBITMQ - Expose RabbitMQ Port to Host
### HOST_PORT_RABBITMQ_MANAGEMENT - Expose RabbitMQ Management Port to Host
### RABBITMQ_DEFAULT_USER - RabbitMQ Management default user
### RABBITMQ_DEFAULT_PASS - RabbitMQ Management default password
### RABBITMQ_DEFAULT_VHOST - RabbitMQ Management default vhost
###
HOST_PORT_RABBITMQ=5672
HOST_PORT_RABBITMQ_MANAGEMENT=15672
RABBITMQ_DEFAULT_USER=admin
RABBITMQ_DEFAULT_PASS=bypanel
RABBITMQ_DEFAULT_VHOST=/
################################################################################
###
### 13. chatgpt-web Docker Settings
###
################################################################################
###
### Expose chatgpt-web Port to Host
###
HOST_PORT_CHATGPT_WEB=3002
### choose one
OPENAI_API_KEY=sk-xxx
OPENAI_ACCESS_TOKEN=xxx
### API interface address, optional, available when OPENAI_API_KEY is set
OPENAI_API_BASE_URL=https://api.chatanywhere.com.cn
### API model, optional, available when OPENAI_API_KEY is set, https://platform.openai.com/docs/models
### gpt-4, gpt-4-1106-preview, gpt-4-0314, gpt-4-0613, gpt-4-32k, gpt-4-32k-0314, gpt-4-32k-0613, gpt-3.5-turbo-16k, gpt-3.5-turbo-16k-0613, gpt-3.5-turbo, gpt-3.5-turbo-0301, gpt-3.5-turbo-0613, text-davinci-003, text-davinci-002, code-davinci-002
OPENAI_API_MODEL=gpt-3.5-turbo
### reverse proxy, optional
CHATGPT_API_REVERSE_PROXY=
### access permission key, optional
CHATGPT_AUTH_SECRET_KEY=
### maximum number of requests per hour, optional, unlimited by default
CHATGPT_MAX_REQUEST_PER_HOUR=0
### timeout, unit milliseconds, optional
CHATGPT_TIMEOUT_MS=60000
### Socks proxy, optional, take effect with SOCKS_PROXY_PORT
CHATGPT_SOCKS_PROXY_HOST=
### Socks proxy port, optional, take effect with SOCKS_PROXY_HOST
CHATGPT_SOCKS_PROXY_PORT=
### HTTPS proxy, optional, support http,https,socks5
CHATGPT_HTTPS_PROXY=