mirror of
https://github.com/m1ngsama/automa.git
synced 2025-12-24 10:51:20 +00:00
init the compose file for the establishment of teamspeak server
This commit is contained in:
parent
a177ec70d7
commit
dcb32e6b91
2 changed files with 66 additions and 0 deletions
37
teamspeak/README.md
Normal file
37
teamspeak/README.md
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
## 使用说明
|
||||
|
||||
1. **创建项目目录**:
|
||||
|
||||
```bash
|
||||
mkdir teamspeak-server && cd teamspeak-server
|
||||
```
|
||||
|
||||
2. **创建 compose.yaml 文件**
|
||||
|
||||
3. **创建 .env 文件设置密码**:
|
||||
|
||||
```bash
|
||||
echo "TS3_ADMIN_PASSWORD=你的强密码" > .env
|
||||
```
|
||||
|
||||
4. **启动服务**:
|
||||
|
||||
```bash
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
5. **查看日志获取权限密钥**:
|
||||
|
||||
```bash
|
||||
docker-compose logs teamspeak | grep "token="
|
||||
```
|
||||
|
||||
## 端口说明
|
||||
|
||||
- **9987/udp**: 语音通信
|
||||
- **10011**: 文件传输
|
||||
- **10022**: 服务器查询
|
||||
- **10080**: HTTP文件传输
|
||||
- **10443**: 主要服务器端口
|
||||
- **30033**: 文件传输
|
||||
- **41144**: TSDNS服务
|
||||
29
teamspeak/compose.yaml
Normal file
29
teamspeak/compose.yaml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
version: "3.8"
|
||||
|
||||
services:
|
||||
teamspeak:
|
||||
image: teamspeak:latest
|
||||
container_name: teamspeak-server
|
||||
ports:
|
||||
- "9987:9987/udp" # 语音服务器端口
|
||||
- "10011:10011" # 文件传输
|
||||
- "10022:10022" # ServerQuery (SSH)
|
||||
- "10080:10080" # 文件传输
|
||||
- "10443:10443" # TS3服务器主要端口
|
||||
- "30033:30033" # 文件传输
|
||||
- "41144:41144" # TSDNS
|
||||
environment:
|
||||
- TS3SERVER_LICENSE=accept
|
||||
- TS3SERVER_SERVERADMIN_PASSWORD=${TS3_ADMIN_PASSWORD:-password123}
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- teamspeak_data:/var/ts3server/
|
||||
networks:
|
||||
- teamspeak-network
|
||||
|
||||
volumes:
|
||||
teamspeak_data:
|
||||
|
||||
networks:
|
||||
teamspeak-network:
|
||||
driver: bridge
|
||||
Loading…
Reference in a new issue