From 28482d201db669036a348b99fb883b02320534c6 Mon Sep 17 00:00:00 2001 From: imbytecat Date: Fri, 23 Aug 2024 14:22:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20docker=20compose=20=E5=BC=80=E6=94=BE=20?= =?UTF-8?q?web=20=E7=AB=AF=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- compose.zabbixagent.yaml | 2 ++ config.yaml | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/compose.zabbixagent.yaml b/compose.zabbixagent.yaml index 879bfd3..6e4e07e 100644 --- a/compose.zabbixagent.yaml +++ b/compose.zabbixagent.yaml @@ -10,6 +10,8 @@ services: volumes: - ./log:/var/log/onvif-agent - ./config.yaml:/etc/onvif-agent/config.yaml + ports: + - "8080:8080" networks: - zabbix-network restart: unless-stopped diff --git a/config.yaml b/config.yaml index bcf59ef..8320d8d 100644 --- a/config.yaml +++ b/config.yaml @@ -1,4 +1,4 @@ app: port: 8080 - host: "localhost" - url: "http://localhost:8080" + host: "0.0.0.0" + url: "http://onvif-agent:8080"