feat: 增加 TeamSpeak Server 应用 (#1654)

This commit is contained in:
BugKing
2024-06-27 10:49:39 +08:00
committed by GitHub
parent b429cad6e6
commit 2ecbb601ad
5 changed files with 124 additions and 0 deletions
+67
View File
@@ -0,0 +1,67 @@
additionalProperties:
formFields:
- child:
default: ""
envKey: PANEL_DB_HOST
required: true
type: service
default: mariadb
envKey: TS3SERVER_DB_TYPE
labelEn: Database Service
labelZh: 数据库服务
required: true
type: apps
values:
- label: MariaDB
value: mariadb
- label: PostgreSQL
value: postgresql
- default: teamspeak
envKey: PANEL_DB_NAME
labelEn: Database
labelZh: 数据库名
random: true
required: true
rule: paramCommon
type: text
- default: teamspeak
envKey: PANEL_DB_USER
labelEn: User
labelZh: 数据库用户
random: true
required: true
rule: paramCommon
type: text
- default: teamspeak
envKey: PANEL_DB_USER_PASSWORD
labelEn: Password
labelZh: 数据库用户密码
random: true
required: true
rule: paramComplexity
type: password
- default: 9987
edit: true
envKey: TS3SERVER_VOICE_PORT
labelEn: Voice Port
labelZh: Voice 端口
required: true
rule: paramPort
type: number
- default: 10011
edit: true
envKey: TS3SERVER_SQ_RAW_PORT
labelEn: ServerQuery (raw) Port
labelZh: ServerQuery (raw) 端口
required: true
rule: paramPort
type: number
- default: 30033
edit: true
envKey: TS3SERVER_FILETRANSFER_PORT
labelEn: Filetransfer Port
labelZh: Filetransfer 端口
required: true
rule: paramPort
type: number
+29
View File
@@ -0,0 +1,29 @@
version: '3'
services:
teamspeak:
image: teamspeak:3.13.7
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- ${TS3SERVER_VOICE_PORT}:9987/udp
- ${TS3SERVER_SQ_RAW_PORT}:10011
- ${TS3SERVER_FILETRANSFER_PORT}:30033
environment:
TS3SERVER_DB_PLUGIN: ts3db_${TS3SERVER_DB_TYPE}
TS3SERVER_DB_SQLCREATEPATH: create_${TS3SERVER_DB_TYPE}
TS3SERVER_DB_WAITUNTILREADY: 30
TS3SERVER_LICENSE: accept
TS3SERVER_DB_HOST: ${PANEL_DB_HOST}
TS3SERVER_DB_NAME: ${PANEL_DB_NAME}
TS3SERVER_DB_PORT: ${PANEL_DB_PORT}
TS3SERVER_DB_USER: ${PANEL_DB_USER}
TS3SERVER_DB_PASSWORD: ${PANEL_DB_USER_PASSWORD}
volumes:
- ./data:/var/ts3server
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true