mirror of
https://github.com/okxlin/appstore.git
synced 2026-02-21 18:37:41 +08:00
feat:添加yourls到列表
This commit is contained in:
parent
c323363ec2
commit
6b201a907b
12
apps/yourls/1.9.2/.env.sample
Normal file
12
apps/yourls/1.9.2/.env.sample
Normal file
@ -0,0 +1,12 @@
|
||||
CONTAINER_NAME="yourls"
|
||||
DATA_PATH="./data"
|
||||
PANEL_APP_PORT_HTTP="40037"
|
||||
PANEL_DB_HOST="mysql"
|
||||
PANEL_DB_NAME="yourls_PXHwjZ"
|
||||
PANEL_DB_PREFIX="yourls_"
|
||||
PANEL_DB_USER="yourls_Ytnm8T"
|
||||
PANEL_DB_USER_PASSWORD="yourls_yyX7PP"
|
||||
PASSWORD="yourls_4CWtCw"
|
||||
USERNAME="yourls_hYC4zp"
|
||||
YOURLS_DB_PORT="3306"
|
||||
YOURLS_EXTERNAL_URL="http://localhost:40037"
|
||||
@ -62,6 +62,13 @@ additionalProperties:
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: ./data
|
||||
edit: true
|
||||
envKey: DATA_PATH
|
||||
labelEn: Data folder path
|
||||
labelZh: 数据文件夹路径
|
||||
required: true
|
||||
type: text
|
||||
- default: yourls
|
||||
envKey: USERNAME
|
||||
labelEn: User
|
||||
@ -78,10 +85,9 @@ additionalProperties:
|
||||
required: true
|
||||
rule: paramComplexity
|
||||
type: password
|
||||
|
||||
- default: http://localhost:40020
|
||||
- default: http://localhost:40037
|
||||
edit: true
|
||||
envKey: FLARUM_EXTERNAL_URL
|
||||
envKey: YOURLS_EXTERNAL_URL
|
||||
labelEn: External URL
|
||||
labelZh: 外部访问地址
|
||||
required: true
|
||||
|
||||
@ -7,6 +7,8 @@ services:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- "${PANEL_APP_PORT_HTTP}:80"
|
||||
volumes:
|
||||
- "${DATA_PATH}:/var/www/html"
|
||||
environment:
|
||||
- YOURLS_SITE=${YOURLS_EXTERNAL_URL}
|
||||
- YOURLS_USER=${USERNAME}
|
||||
@ -16,7 +18,7 @@ services:
|
||||
- YOURLS_DB_USER=${PANEL_DB_USER}
|
||||
- YOURLS_DB_PASS=${PANEL_DB_USER_PASSWORD}
|
||||
- YOURLS_DB_PREFIX=${PANEL_DB_PREFIX}
|
||||
image: yourls:1.9.2-fpm-alpine
|
||||
image: yourls:1.9.2
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
|
||||
|
||||
@ -1,6 +1,19 @@
|
||||
# 使用说明
|
||||
|
||||
- 初始化设置
|
||||
|
||||
注意:首次实例化时,访问根文件夹将生成错误。通过路径 `/admin/` 访问 `YOURLS` 管理界面
|
||||
|
||||
假如外部访问地址设置为`http://localhost:40020`,
|
||||
|
||||
那么需要访问`http://localhost:40020/admin/`进行初始化设置
|
||||
|
||||
|
||||
# 原始相关
|
||||
|
||||
<h1 align="center">
|
||||
<a href="https://yourls.org">
|
||||
<img src="images/yourls-logo.svg" width=66% alt="YOURLS">
|
||||
<img src="https://raw.githubusercontent.com/YOURLS/YOURLS/master/images/yourls-logo.svg" width=66% alt="YOURLS">
|
||||
</a>
|
||||
</h1>
|
||||
|
||||
|
||||
12
apps/yourls/latest/.env.sample
Normal file
12
apps/yourls/latest/.env.sample
Normal file
@ -0,0 +1,12 @@
|
||||
CONTAINER_NAME="yourls"
|
||||
DATA_PATH="./data"
|
||||
PANEL_APP_PORT_HTTP="40037"
|
||||
PANEL_DB_HOST="mysql"
|
||||
PANEL_DB_NAME="yourls_PXHwjZ"
|
||||
PANEL_DB_PREFIX="yourls_"
|
||||
PANEL_DB_USER="yourls_Ytnm8T"
|
||||
PANEL_DB_USER_PASSWORD="yourls_yyX7PP"
|
||||
PASSWORD="yourls_4CWtCw"
|
||||
USERNAME="yourls_hYC4zp"
|
||||
YOURLS_DB_PORT="3306"
|
||||
YOURLS_EXTERNAL_URL="http://localhost:40037"
|
||||
94
apps/yourls/latest/data.yml
Normal file
94
apps/yourls/latest/data.yml
Normal file
@ -0,0 +1,94 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- child:
|
||||
default: ""
|
||||
envKey: PANEL_DB_HOST
|
||||
labelEn: Database Service
|
||||
labelZh: 数据库服务
|
||||
required: true
|
||||
type: service
|
||||
default: mysql
|
||||
labelEn: Database Service
|
||||
labelZh: 数据库服务
|
||||
params:
|
||||
- envKey: YOURLS_DB_PORT
|
||||
key: mysql
|
||||
type: param
|
||||
value: "3306"
|
||||
- envKey: YOURLS_DB_PORT
|
||||
key: postgresql
|
||||
type: param
|
||||
value: "5432"
|
||||
required: true
|
||||
type: apps
|
||||
values:
|
||||
- label: MySQL
|
||||
value: mysql
|
||||
- default: yourls
|
||||
envKey: PANEL_DB_NAME
|
||||
labelEn: Database
|
||||
labelZh: 数据库名
|
||||
random: true
|
||||
required: true
|
||||
rule: paramCommon
|
||||
type: text
|
||||
- default: yourls
|
||||
envKey: PANEL_DB_USER
|
||||
labelEn: User
|
||||
labelZh: 数据库用户
|
||||
random: true
|
||||
required: true
|
||||
rule: paramCommon
|
||||
type: text
|
||||
- default: yourls
|
||||
envKey: PANEL_DB_USER_PASSWORD
|
||||
labelEn: Password
|
||||
labelZh: 数据库用户密码
|
||||
random: true
|
||||
required: true
|
||||
rule: paramComplexity
|
||||
type: password
|
||||
- default: yourls_
|
||||
envKey: PANEL_DB_PREFIX
|
||||
labelEn: Database prefix
|
||||
labelZh: 数据库前缀
|
||||
required: true
|
||||
type: text
|
||||
- default: 40037
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: ./data
|
||||
edit: true
|
||||
envKey: DATA_PATH
|
||||
labelEn: Data folder path
|
||||
labelZh: 数据文件夹路径
|
||||
required: true
|
||||
type: text
|
||||
- default: yourls
|
||||
envKey: USERNAME
|
||||
labelEn: User
|
||||
labelZh: 用户
|
||||
random: true
|
||||
required: true
|
||||
rule: paramCommon
|
||||
type: text
|
||||
- default: yourls
|
||||
envKey: PASSWORD
|
||||
labelEn: Password
|
||||
labelZh: 用户密码
|
||||
random: true
|
||||
required: true
|
||||
rule: paramComplexity
|
||||
type: password
|
||||
- default: http://localhost:40037
|
||||
edit: true
|
||||
envKey: YOURLS_EXTERNAL_URL
|
||||
labelEn: External URL
|
||||
labelZh: 外部访问地址
|
||||
required: true
|
||||
type: text
|
||||
27
apps/yourls/latest/docker-compose.yml
Normal file
27
apps/yourls/latest/docker-compose.yml
Normal file
@ -0,0 +1,27 @@
|
||||
version: '3'
|
||||
services:
|
||||
yourls:
|
||||
container_name: ${CONTAINER_NAME}
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- "${PANEL_APP_PORT_HTTP}:80"
|
||||
volumes:
|
||||
- "${DATA_PATH}:/var/www/html"
|
||||
environment:
|
||||
- YOURLS_SITE=${YOURLS_EXTERNAL_URL}
|
||||
- YOURLS_USER=${USERNAME}
|
||||
- YOURLS_PASS=${PASSWORD}
|
||||
- YOURLS_DB_HOST=${PANEL_DB_HOST}:${YOURLS_DB_PORT}
|
||||
- YOURLS_DB_NAME=${PANEL_DB_NAME}
|
||||
- YOURLS_DB_USER=${PANEL_DB_USER}
|
||||
- YOURLS_DB_PASS=${PANEL_DB_USER_PASSWORD}
|
||||
- YOURLS_DB_PREFIX=${PANEL_DB_PREFIX}
|
||||
image: yourls:latest
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
Loading…
Reference in New Issue
Block a user