fix: docker compose 开放 web 端口

This commit is contained in:
Liam Chan 2024-08-23 14:22:41 +08:00
parent 6294a2ea3a
commit 28482d201d
2 changed files with 4 additions and 2 deletions

View File

@ -10,6 +10,8 @@ services:
volumes: volumes:
- ./log:/var/log/onvif-agent - ./log:/var/log/onvif-agent
- ./config.yaml:/etc/onvif-agent/config.yaml - ./config.yaml:/etc/onvif-agent/config.yaml
ports:
- "8080:8080"
networks: networks:
- zabbix-network - zabbix-network
restart: unless-stopped restart: unless-stopped

View File

@ -1,4 +1,4 @@
app: app:
port: 8080 port: 8080
host: "localhost" host: "0.0.0.0"
url: "http://localhost:8080" url: "http://onvif-agent:8080"