1
0

feat:调整lanraragi

This commit is contained in:
okxlin
2024-09-01 16:01:42 +08:00
parent 8b1d7e5b19
commit dc137d6598
9 changed files with 179 additions and 92 deletions

View File

@@ -1,3 +1,9 @@
CONTAINER_NAME="lanraragi"
PANEL_APP_PORT_HTTP="3000"
CONTENT_DIRECTORY="./data/content"
DATABASE_DIRECTORY="./data/database"
HTTPS_PROXY=""
HTTP_PROXY=""
PANEL_APP_PORT_HTTP=40290
PLUGIN_DIRECTORY="./data/plugin"
THUMBNAIL_DIRECTORY="./data/thumb"
TIME_ZONE="Asia/Shanghai"

View File

@@ -1,10 +1,59 @@
additionalProperties:
formFields:
- default: 3000
- default: "40290"
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: WebUI Port
labelZh: 网页端口
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
type: number
- default: "./data/content"
edit: true
envKey: CONTENT_DIRECTORY
labelEn: Content Directory
labelZh: 媒体库目录
required: true
type: text
- default: "./data/thumb"
edit: true
envKey: THUMBNAIL_DIRECTORY
labelEn: Thumbnail Directory
labelZh: 缩略图目录
required: true
type: text
- default: "./data/database"
edit: true
envKey: DATABASE_DIRECTORY
labelEn: Database Directory
labelZh: 数据库目录
required: true
type: text
- default: "./data/plugin"
edit: true
envKey: PLUGIN_DIRECTORY
labelEn: Plugin Directory
labelZh: 插件目录
required: true
type: text
- default: ""
edit: true
envKey: HTTP_PROXY
labelEn: HTTP Proxy
labelZh: HTTP 代理
required: false
type: text
- default: ""
edit: true
envKey: HTTPS_PROXY
labelEn: HTTPS Proxy
labelZh: HTTPS 代理
required: false
type: text
- default: "Asia/Shanghai"
edit: true
envKey: TIME_ZONE
labelEn: Time Zone
labelZh: 时区
required: true
type: text

View File

@@ -1,31 +1,24 @@
services:
lanraragi:
user: root
container_name: lanraragi
image: "difegue/lanraragi:latest"
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
environment:
- "TZ=Asia/Shanghai"
ports:
- "3000:3000"
- "${PANEL_APP_PORT_HTTP}:3000"
volumes:
- content:/home/koyomi/lanraragi/content
- thumbnails:/home/koyomi/lanraragi/content/thumb
- database:/home/koyomi/lanraragi/database
- plugin:/home/koyomi/lanraragi/lib/LANraragi/Plugin
- Sideloaded:/home/koyomi/lanraragi/lib/LANraragi/Plugin/Sideloaded
image: mhdy2233/lanraragi_cn_mhdy:0.2
- ${CONTENT_DIRECTORY}:/home/koyomi/lanraragi/content
- ${THUMBNAIL_DIRECTORY}:/home/koyomi/lanraragi/content/thumb
- ${DATABASE_DIRECTORY}:/home/koyomi/lanraragi/database
- ${PLUGIN_DIRECTORY}:/home/koyomi/lanraragi/lib/LANraragi/Plugin
environment:
- http_proxy=${HTTP_PROXY}
- https_proxy=${HTTPS_PROXY}
- TZ=${TIME_ZONE}
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true
volumes:
content:
thumbnails:
database:
plugin:
Sideloaded: