feat:修改amprobe为host网络模式
This commit is contained in:
parent
37027ba887
commit
bb6c4e11c0
|
|
@ -3,8 +3,8 @@ additionalProperties:
|
||||||
- default: 40235
|
- default: 40235
|
||||||
edit: true
|
edit: true
|
||||||
envKey: PANEL_APP_PORT_HTTP
|
envKey: PANEL_APP_PORT_HTTP
|
||||||
labelEn: Port
|
labelEn: Port (determined by the configuration file)
|
||||||
labelZh: 端口
|
labelZh: 端口 (由配置文件决定)
|
||||||
required: true
|
required: true
|
||||||
rule: paramPort
|
rule: paramPort
|
||||||
type: number
|
type: number
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ http {
|
||||||
keepalive_timeout 65;
|
keepalive_timeout 65;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 40235;
|
||||||
#server_name amprobe.amuluze.com; # 服务器地址或绑定域名
|
#server_name amprobe.amuluze.com; # 服务器地址或绑定域名
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,7 @@ services:
|
||||||
image: amuluze/amprobe:v1.3.3
|
image: amuluze/amprobe:v1.3.3
|
||||||
container_name: ${CONTAINER_NAME}
|
container_name: ${CONTAINER_NAME}
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
network_mode: "host"
|
||||||
- "${PANEL_APP_PORT_HTTP}:80"
|
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- /proc:/host/proc:ro
|
- /proc:/host/proc:ro
|
||||||
|
|
@ -16,7 +15,3 @@ services:
|
||||||
- ./data/supervisor:/etc/supervisor/conf.d
|
- ./data/supervisor:/etc/supervisor/conf.d
|
||||||
labels:
|
labels:
|
||||||
createdBy: "Apps"
|
createdBy: "Apps"
|
||||||
|
|
||||||
networks:
|
|
||||||
1panel-network:
|
|
||||||
external: true
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue