fix(docker): compose 文件映射

This commit is contained in:
2024-08-23 13:58:51 +08:00
parent f2d4474c59
commit 554da113e3

View File

@ -4,9 +4,12 @@ services:
context: . context: .
dockerfile: zabbixagent.dockerfile dockerfile: zabbixagent.dockerfile
environment: environment:
ZBX_HOSTNAME: ONVIF plugin for Zabbix agent 2 ZBX_HOSTNAME: OnvifAgent plugin
ZBX_SERVER_HOST: server ZBX_SERVER_HOST: server
ZBX_SERVER_PORT: 10051 ZBX_SERVER_PORT: 10051
volumes:
- ./log:/var/log/onvif-agent
- ./config.yaml:/etc/onvif-agent/config.yaml
networks: networks:
- zabbix-network - zabbix-network
restart: unless-stopped restart: unless-stopped