This commit is contained in:
SantaSpeen committed 2023-11-21 14:28:40 +03:00
1 parent 9a3411741e
commit 7ae6528915
1 file changed
+29 -29
+29 -29
View File
@@ -127,42 +127,42 @@ services:
zabbix-agent: zabbix-agent:
image: zabbix/zabbix-agent:alpine-6.0-latest image: zabbix/zabbix-agent:alpine-6.0-latest
profiles: profiles:
- full - full
- all - all
ports: ports:
- "10050:10050" - "10050:10050"
volumes: volumes:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro - /etc/timezone:/etc/timezone:ro
- ./zbx_env/etc/zabbix/zabbix_agentd.d:/etc/zabbix/zabbix_agentd.d:ro - ./zbx_env/etc/zabbix/zabbix_agentd.d:/etc/zabbix/zabbix_agentd.d:ro
- ./zbx_env/var/lib/zabbix/modules:/var/lib/zabbix/modules:ro - ./zbx_env/var/lib/zabbix/modules:/var/lib/zabbix/modules:ro
- ./zbx_env/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro - ./zbx_env/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro
- ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro - ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro
deploy: deploy:
resources: resources:
limits: limits:
cpus: '0.2' cpus: '0.2'
memory: 128M memory: 128M
reservations: reservations:
cpus: '0.1' cpus: '0.1'
memory: 64M memory: 64M
mode: global mode: global
env_file: env_file:
- ./env_vars/.env_agent - ./env_vars/.env_agent
privileged: true privileged: true
pid: "host" pid: "host"
networks: networks:
zbx_net_backend: zbx_net_backend:
aliases: aliases:
- zabbix-agent - zabbix-agent
- zabbix-agent-passive - zabbix-agent-passive
- zabbix-agent-alpine - zabbix-agent-alpine
stop_grace_period: 5s stop_grace_period: 5s
labels: labels:
com.zabbix.description: "Zabbix agent" com.zabbix.description: "Zabbix agent"
com.zabbix.company: "Zabbix LLC" com.zabbix.company: "Zabbix LLC"
com.zabbix.component: "zabbix-agentd" com.zabbix.component: "zabbix-agentd"
com.zabbix.os: "alpine" com.zabbix.os: "alpine"
postgres-server: postgres-server:
container_name: zabbix-db container_name: zabbix-db