1
0

feat:添加sunshine到列表

This commit is contained in:
okxlin
2024-08-04 01:06:01 +08:00
parent 7f8c469915
commit 27d90f9204
8 changed files with 138 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
CONTAINER_NAME="sunshine"
DATA_PATH="./data"
PANEL_APP_PORT_HTTP2=48010
PANEL_APP_PORT_HTTPS=47990
PANEL_APP_PORT_TCP="47984-47989"
PANEL_APP_PORT_UDP="47998-48000"
PGID=1001
PUID=1001
TZ="Asia/Shanghai"

View File

@@ -0,0 +1,60 @@
additionalProperties:
formFields:
- default: "47990"
edit: true
envKey: PANEL_APP_PORT_HTTPS
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: "48010"
edit: true
envKey: PANEL_APP_PORT_HTTP2
labelEn: Port 2
labelZh: 端口 2
required: true
rule: paramPort
type: number
- default: "47984-47989"
edit: true
envKey: PANEL_APP_PORT_TCP
labelEn: TCP Port Range
labelZh: TCP 端口范围
required: true
type: text
- default: "47998-48000"
edit: true
envKey: PANEL_APP_PORT_UDP
labelEn: TUDP Port Range
labelZh: UDP 端口范围
required: true
type: text
- default: "1001"
disabled: true
envKey: PUID
labelEn: User ID
labelZh: 用户 ID
required: true
type: number
- default: "1001"
disabled: true
envKey: PGID
labelEn: Group ID
labelZh: 用户组 ID
required: true
type: number
- default: "Asia/Shanghai"
edit: true
envKey: TZ
labelEn: Timezone
labelZh: 时区
required: true
type: text
- default: "./data"
disabled: true
envKey: DATA_PATH
labelEn: Data Path
labelZh: 数据路径
required: true
type: text

View File

View File

@@ -0,0 +1,26 @@
services:
sunshine:
image: "lizardbyte/sunshine:latest-ubuntu-24.04"
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
devices:
- /dev/dri/
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
volumes:
- ${DATA_PATH}:/config
ports:
- ${PANEL_APP_PORT_HTTPS}:47990
- "${PANEL_APP_PORT_TCP}:47984-47989/tcp"
- "${PANEL_APP_PORT_HTTP2}:48010"
- "${PANEL_APP_PORT_UDP}:47998-48000/udp"
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

View File

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