Skip to content

Commit 68a195e

Browse files
committed
perf: make no-new-privileges true when use docker
1 parent 2274e0e commit 68a195e

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

compose.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
# 当接入 QQ NapCat 时,请使用这个 compose 文件一键部署: https://github.com/NapNeko/NapCat-Docker/blob/main/compose/astrbot.yml
1+
version: '3.8'
2+
3+
# When connecting to OneBot v11 Napcat, please use this compose file for one-click deployment: https://github.com/NapNeko/NapCat-Docker/blob/main/compose/astrbot.yml
24

35
services:
46
astrbot:
57
image: soulter/astrbot:latest
68
container_name: astrbot
79
restart: always
8-
ports: # mappings description: https://github.com/AstrBotDevs/AstrBot/issues/497
9-
- "6185:6185" # 必选,AstrBot WebUI 端口
10-
- "6199:6199" # 可选, QQ 个人号 WebSocket 端口
11-
# - "6195:6195" # 可选, 企业微信 Webhook 端口
12-
# - "6196:6196" # 可选, QQ 官方接口 Webhook 端口
10+
security_opt:
11+
- no-new-privileges:true
12+
ports:
13+
- "6185:6185" # AstrBot WebUI
14+
- "6199:6199" # Optional. OneBot v11 Napcat Websocket Port
1315
environment:
1416
- TZ=Asia/Shanghai
1517
volumes:

0 commit comments

Comments
 (0)