1
0
This commit is contained in:
pooneyy
2025-06-25 11:22:27 +08:00
parent fce601421f
commit aa226da67f
92 changed files with 817 additions and 318 deletions

View File

@@ -0,0 +1,7 @@
CONTAINER_NAME="aria2-pro"
RPC_PORT_VALUE="6800"
PANEL_APP_PORT_HTTP="6888"
TOKEN="aria2trIyiPhA0l"
CONFIG_PATH="./data/config"
DOWNLOAD_PATH="./data/downloads"
TRACKER_URL="https://trackerslist.com/all_aria2.txt"

View File

@@ -0,0 +1,47 @@
additionalProperties:
formFields:
- default: 6800
edit: true
envKey: RPC_PORT_VALUE
labelEn: RPC port
labelZh: RPC端口
required: true
rule: paramPort
type: number
- default: 6888
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Listening port
labelZh: 监听端口
required: true
rule: paramPort
type: number
- default: aria2
envKey: TOKEN
labelEn: RPC secret
labelZh: RPC密钥
random: true
required: true
rule: paramCommon
type: text
- default: ./data/config
edit: true
envKey: CONFIG_PATH
labelEn: Path to the configuration file
labelZh: 配置文件所在路径
required: true
type: text
- default: ./data/downloads
edit: true
envKey: DOWNLOAD_PATH
labelEn: Download folder path
labelZh: 下载文件夹路径
required: true
type: text
- default: https://trackerslist.com/all_aria2.txt
edit: true
envKey: TRACKER_URL
labelEn: TRACKER URL
labelZh: TRACKER链接
required: true
type: text

View File

@@ -0,0 +1,35 @@
services:
aria2-pro:
container_name: ${CONTAINER_NAME}
restart: always
ports:
- "${RPC_PORT_VALUE}:${RPC_PORT_VALUE}"
- "${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP}"
- "${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP}/udp"
environment:
- "PUID=${UID}"
- "PGID=${GID}"
- "UMASK_SET=022"
- "RPC_SECRET=${TOKEN}"
- "RPC_PORT=${RPC_PORT_VALUE}"
- "LISTEN_PORT=${PANEL_APP_PORT_HTTP}"
- "DISK_CACHE=64M"
- "IPV6_MODE=true"
- "UPDATE_TRACKERS=true"
- "CUSTOM_TRACKER_URL=${TRACKER_URL}"
- "TZ=Asia/Shanghai"
volumes:
- "${CONFIG_PATH}:/config"
- "${DOWNLOAD_PATH}:/downloads"
logging:
options:
max-size: 1m
networks:
- 1panel-network
image: p3terx/aria2-pro:202209060423
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true