This commit is contained in:
lingdianshiren 2025-07-07 21:56:52 +08:00 committed by GitHub
commit 26da64f922
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 88 additions and 0 deletions

View File

@ -0,0 +1,8 @@
CONTAINER_NAME="bililive-recorder"
PANEL_APP_PORT_HTTP=40278
PGID=1000
PUID=1000
UMASK=22
USER_NAME="admin"
USER_PASSWORD="admin"
WORK_SPACE_PATH="./data"

View File

@ -0,0 +1,54 @@
additionalProperties:
formFields:
- default: "40278"
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: admin
edit: true
envKey: USER_NAME
labelEn: WebUI Username
labelZh: WebUI 的用户名
required: true
type: text
- default: admin
edit: true
envKey: USER_PASSWORD
labelEn: WebUI access password
labelZh: WebUI 的访问密码
random: true
required: true
rule: paramComplexity
type: password
- default: "./data"
edit: true
envKey: WORK_SPACE_PATH
labelEn: work space path (Pay attention to folder permissions)
labelZh: 工作目录路径 (注意文件夹权限)
required: true
type: text
- default: "022"
edit: true
envKey: UMASK
labelEn: UMASK
labelZh: 文件权限掩码
required: true
type: text
- 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

View File

@ -0,0 +1,23 @@
services:
recorder:
image: "bililive/recorder:2.17.0"
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
volumes:
- "${WORK_SPACE_PATH}:/rec"
ports:
- "${PANEL_APP_PORT_HTTP}:2356"
environment:
- BREC_HTTP_BASIC_USER=${USER_NAME}
- BREC_HTTP_BASIC_PASS=${USER_PASSWORD}
- UMASK=${UMASK}
- PUID=${PUID}
- PGID=${PGID}
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

View File

@ -0,0 +1,3 @@
#!/bin/bash
chown -R 1000:1000 data