feat:添加dujiaoka到列表
This commit is contained in:
4
apps/dujiaoka/latest/.env.sample
Normal file
4
apps/dujiaoka/latest/.env.sample
Normal file
@@ -0,0 +1,4 @@
|
||||
CONTAINER_NAME="dujiaoka"
|
||||
INSTALL="true"
|
||||
MODIFY="false"
|
||||
PANEL_APP_PORT_HTTP="40256"
|
||||
34
apps/dujiaoka/latest/data.yml
Normal file
34
apps/dujiaoka/latest/data.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: 40256
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "true"
|
||||
edit: true
|
||||
envKey: INSTALL
|
||||
labelEn: Whether to perform initial installation
|
||||
labelZh: 是否进行初始化安装
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: "false"
|
||||
value: "false"
|
||||
- label: "true"
|
||||
value: "true"
|
||||
- default: "false"
|
||||
edit: true
|
||||
envKey: MODIFY
|
||||
labelEn: Modified or not
|
||||
labelZh: 是否已修改
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: "false"
|
||||
value: "false"
|
||||
- label: "true"
|
||||
value: "true"
|
||||
47
apps/dujiaoka/latest/data/env.conf
Normal file
47
apps/dujiaoka/latest/data/env.conf
Normal file
@@ -0,0 +1,47 @@
|
||||
APP_NAME=独角数卡
|
||||
APP_ENV=local
|
||||
APP_KEY=base64:hDVkYhfkUjaePiaI1tcBT7G8bh2A8RQxwWIGkq7BO18=
|
||||
APP_DEBUG=true
|
||||
APP_URL=http://dujiaoka.test
|
||||
|
||||
LOG_CHANNEL=stack
|
||||
|
||||
# 数据库配置
|
||||
DB_CONNECTION=mysql
|
||||
DB_HOST=db
|
||||
DB_PORT=3306
|
||||
DB_DATABASE=dujiaoka
|
||||
DB_USERNAME=dujiaoka
|
||||
DB_PASSWORD=YOUR_PASSWORD
|
||||
|
||||
# redis 配置
|
||||
REDIS_HOST=redis
|
||||
REDIS_PASSWORD=
|
||||
REDIS_PORT=6379
|
||||
|
||||
BROADCAST_DRIVER=log
|
||||
SESSION_DRIVER=file
|
||||
SESSION_LIFETIME=120
|
||||
|
||||
|
||||
# 缓存配置
|
||||
# file 为磁盘文件 redis 为内存级别
|
||||
# redis 为内存需要安装好 redis 服务端并配置
|
||||
CACHE_DRIVER=redis
|
||||
|
||||
# 异步消息队列
|
||||
# sync 为同步 redis 为异步
|
||||
# 使用 redis 异步需要安装好 redis 服务端并配置
|
||||
QUEUE_CONNECTION=redis
|
||||
|
||||
# 后台语言
|
||||
## zh_CN 简体中文
|
||||
## zh_TW 繁体中文
|
||||
## en 英文
|
||||
DUJIAO_ADMIN_LANGUAGE=zh_CN
|
||||
|
||||
# 后台登录地址
|
||||
ADMIN_ROUTE_PREFIX=/admin
|
||||
|
||||
# 后台 https 支持 docker 部署无需开启
|
||||
#ADMIN_HTTPS=true
|
||||
0
apps/dujiaoka/latest/data/storage/.gitkeep
Normal file
0
apps/dujiaoka/latest/data/storage/.gitkeep
Normal file
0
apps/dujiaoka/latest/data/uploads/.gitkeep
Normal file
0
apps/dujiaoka/latest/data/uploads/.gitkeep
Normal file
22
apps/dujiaoka/latest/docker-compose.yml
Normal file
22
apps/dujiaoka/latest/docker-compose.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
services:
|
||||
dujiaoka:
|
||||
image: "stilleshan/dujiaoka:latest"
|
||||
container_name: ${CONTAINER_NAME}
|
||||
restart: always
|
||||
ports:
|
||||
- "${PANEL_APP_PORT_HTTP}:80"
|
||||
volumes:
|
||||
- ./data/env.conf:/dujiaoka/.env
|
||||
- ./data/uploads:/dujiaoka/public/uploads
|
||||
- ./data/storage:/dujiaoka/storage
|
||||
environment:
|
||||
- INSTALL=${INSTALL}
|
||||
- MODIFY=${MODIFY}
|
||||
networks:
|
||||
- 1panel-network
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
3
apps/dujiaoka/latest/scripts/init.sh
Normal file
3
apps/dujiaoka/latest/scripts/init.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
chmod -R 777 data/storage data/uploads data/env.conf
|
||||
Reference in New Issue
Block a user