feat(glance-agent): 添加对官方agent的支持并更新文档

添加官方glance-agent的0.1.0和latest版本配置
保留原有custom版本配置
更新README说明版本差异和配置方法
This commit is contained in:
arch3rPro
2025-12-14 16:29:52 +08:00
parent 10d5179914
commit e021bdcf9e
7 changed files with 127 additions and 26 deletions
+20 -9
View File
@@ -1,10 +1,21 @@
additionalProperties:
formFields:
- default: "12080"
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Service Port 8000
labelZh: 服务端口 8000
required: true
rule: paramPort
type: number
formFields:
- default: "27973"
envKey: AGENT_PORT
label:
en: Agent-Port
zh: Agent-端口
required: true
type: number
edit: true
rule: paramPort
- default: your_auth_token_here
envKey: AGENT_TOKEN
label:
en: Agent-Token
zh: Agent-Token
required: false
type: text
edit: true
random: true
values: []
+15 -16
View File
@@ -1,18 +1,17 @@
services:
agent-image:
image: vuldocker/glance-agent:latest
container_name: ${CONTAINER_NAME}
restart: unless-stopped
ports:
- ${PANEL_APP_PORT_HTTP}:8000
volumes:
- /etc/hostname:/host/etc/hostname:ro
networks:
- 1panel-network
environment:
- TZ=Asia/Shanghai
labels:
createdBy: Apps
glance-agent:
container_name: ${CONTAINER_NAME}
image: glanceapp/agent:latest
environment:
TOKEN: ${AGENT_TOKEN}
volumes:
- /storage:/storage:ro
ports:
- ${AGENT_PORT}:27973
networks:
- 1panel-network
labels:
createdBy: Apps
networks:
1panel-network:
external: true
1panel-network:
external: true