1
0

feat:添加deluge到列表

This commit is contained in:
okxlin
2024-11-14 22:39:51 +08:00
parent fad4ffebbd
commit 4212007c12
9 changed files with 239 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
CONFIG_PATH="./data/config"
CONTAINER_NAME="deluge"
DELUGE_LOGLEVEL="error"
DELUGE_PEER_PORT=6881
DELUGE_PORT_RPC=58846
DOWNLOAD_PATH="./data/downloads"
PANEL_APP_PORT_HTTP=40321
PGID=1000
PUID=1000
TIME_ZONE="Asia/Shanghai"

View File

@@ -0,0 +1,68 @@
additionalProperties:
formFields:
- default: "40321"
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: "6881"
edit: true
envKey: DELUGE_PEER_PORT
labelEn: Peer Port
labelZh: Peer 端口
required: true
rule: paramPort
type: number
- default: "58846"
edit: true
envKey: DELUGE_PORT_RPC
labelEn: RPC Port
labelZh: RPC 端口
required: true
rule: paramPort
type: number
- default: "1000"
edit: true
envKey: PUID
labelEn: User ID
labelZh: 用户 ID
required: true
type: number
- default: "1000"
edit: true
envKey: PGID
labelEn: Group ID
labelZh: 组 ID
required: true
type: number
- default: "Asia/Shanghai"
edit: true
envKey: TIME_ZONE
labelEn: Time Zone
labelZh: 时区
required: true
type: text
- default: "error"
edit: true
envKey: DELUGE_LOGLEVEL
labelEn: Deluge Log Level
labelZh: Deluge 日志级别
required: true
type: text
- default: "./data/config"
edit: true
envKey: CONFIG_PATH
labelEn: Deluge Config Path
labelZh: Deluge 配置路径
required: true
type: text
- default: "./data/downloads"
edit: true
envKey: DOWNLOAD_PATH
labelEn: Downloads Path
labelZh: 下载路径
required: true
type: text

View File

@@ -0,0 +1,26 @@
services:
deluge:
image: "linuxserver/deluge:latest"
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TIME_ZONE}
- DELUGE_LOGLEVEL=${DELUGE_LOGLEVEL}
volumes:
- ${CONFIG_PATH}:/config
- ${DOWNLOAD_PATH}:/downloads
ports:
- "${PANEL_APP_PORT_HTTP}:8112"
- "${DELUGE_PEER_PORT}:${DELUGE_PEER_PORT}"
- "${DELUGE_PEER_PORT}:${DELUGE_PEER_PORT}/udp"
- "${DELUGE_PORT_RPC}:${DELUGE_PORT_RPC}"
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true