feat:修改amprobe为host网络模式

This commit is contained in:
okxlin 2024-05-11 00:05:23 +08:00
parent 37027ba887
commit bb6c4e11c0
3 changed files with 4 additions and 9 deletions

View File

@ -3,8 +3,8 @@ additionalProperties:
- default: 40235
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
labelEn: Port (determined by the configuration file)
labelZh: 端口 (由配置文件决定)
required: true
rule: paramPort
type: number

View File

@ -16,7 +16,7 @@ http {
keepalive_timeout 65;
server {
listen 80;
listen 40235;
#server_name amprobe.amuluze.com; # 服务器地址或绑定域名
location / {

View File

@ -4,8 +4,7 @@ services:
image: amuluze/amprobe:v1.3.3
container_name: ${CONTAINER_NAME}
restart: always
ports:
- "${PANEL_APP_PORT_HTTP}:80"
network_mode: "host"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /proc:/host/proc:ro
@ -16,7 +15,3 @@ services:
- ./data/supervisor:/etc/supervisor/conf.d
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true