-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathzabbix-docker-compose.yml
More file actions
127 lines (126 loc) · 3.67 KB
/
zabbix-docker-compose.yml
File metadata and controls
127 lines (126 loc) · 3.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
version: '3.8'
networks:
net:
driver: overlay
attachable: true
services:
pgsql:
image: postgres:15.8
volumes:
- ${STACK_VOLUME}/pgsql/data/:/var/lib/postgresql/data:rw
environment:
- TZ=America/Bahia
- POSTGRES_DB=zabbix_db
- POSTGRES_USER=root
- POSTGRES_PASSWORD=4/GZ^0ZOKe0p
- PGSQL_ROOT_PASSWORD=4/GZ^0ZOKe0p
deploy:
restart_policy:
condition: on-failure
resources:
limits:
cpus: "1"
memory: 512M
reservations:
memory: 256M
cpus: "0.5"
ports:
- 5432:5432
networks:
- net
zabbix-server:
image: zabbix/zabbix-server-pgsql:7.0.5-ubuntu
privileged: true
user: root
volumes:
- ${STACK_VOLUME}/zabbix/data/usr/lib/zabbix/alertscripts:/usr/lib/zabbix/alertscripts:ro
- ${STACK_VOLUME}/zabbix/data/usr/lib/zabbix/externalscripts:/usr/lib/zabbix/externalscripts:ro
- ${STACK_VOLUME}/zabbix/data/var/lib/zabbix/modules:/var/lib/zabbix/modules:ro
- ${STACK_VOLUME}/zabbix/data/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro
- ${STACK_VOLUME}/zabbix/data/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro
- ${STACK_VOLUME}/zabbix/data/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro
- ${STACK_VOLUME}/zabbix/data/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:ro
- ${STACK_VOLUME}/zabbix/data/var/lib/zabbix/ssl/certs:/var/lib/zabbix/ssl/certs:ro
- ${STACK_VOLUME}/zabbix/data/var/lib/zabbix/ssl/keys:/var/lib/zabbix/ssl/keys:ro
environment:
- TZ=America/Bahia
- DB_SERVER_HOST=pgsql
- POSTGRES_DB=zabbix_db
- POSTGRES_USER=root
- POSTGRES_PASSWORD=4/GZ^0ZOKe0p
- PGSQL_ROOT_PASSWORD=4/GZ^0ZOKe0p
- ZBX_ENABLE_SNMP_TRAPS=true
- ZBX_STARTPOLLERS=10
- ZBX_STARTPINGERS=15
- CACHESIZE=1G
- ZBX_STARTPOLLERSUNREACHABLE=10
- ZBX_LISTENPORT=10051
- ZBX_HOUSEKEEPINGFREQUENCY=1
- ZBX_MAXHOUSEKEEPERDELETE=5000
- ZBX_PROBLEMHOUSEKEEPINGFREQUENCY=60
- ZBX_SENDERFREQUENCY=30
- ZBX_CACHEUPDATEFREQUENCY=10
- ZBX_STARTDBSYNCERS=4
- ZBX_EXPORTFILESIZE=1G
- ZBX_HISTORYCACHESIZE=16M
- ZBX_HISTORYINDEXCACHESIZE=4M
- ZBX_HISTORYSTORAGEDATEINDEX=0
- ZBX_TRENDCACHESIZE=4M
- ZBX_TRENDFUNCTIONCACHESIZE=4M
- ZBX_VALUECACHESIZE=8M
- ZBX_UNREACHABLEPERIOD=45
- ZBX_UNAVAILABLEDELAY=60
- ZBX_UNREACHABLEDELAY=15
- ZBX_LOGSLOWQUERIES=3000
depends_on:
- pgsql
deploy:
restart_policy:
condition: on-failure
resources:
limits:
cpus: "1"
memory: 512M
reservations:
memory: 256M
cpus: "0.5"
ports:
- 10051:10051
networks:
- net
zabbix-frontend:
image: zabbix/zabbix-web-nginx-pgsql:7.0.5-ubuntu
ports:
- '80:8080'
- '443:8443'
environment:
- PHP_TZ=America/Bahia
- ZBX_SERVER_NAME=Consult IT
- DB_SERVER_HOST=pgsql
- POSTGRES_DB=zabbix_db
- POSTGRES_USER=root
- POSTGRES_PASSWORD=4/GZ^0ZOKe0p
- PGSQL_ROOT_PASSWORD=4/GZ^0ZOKe0p
- ZBX_SERVER_HOST=zabbix-server
- ZBX_HOSTNAME=Zabbix server
- ZBX_SERVER_PORT=10051
depends_on:
- pgsql
- zabbix-server
networks:
- net
zabbix-snmptraps:
user: root
image: zabbix/zabbix-snmptraps:7.0.5-ubuntu
volumes:
- ${STACK_VOLUME}/zabbix/data/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:rw
privileged: true
ports:
- "161:161/udp"
environment:
- ZBX_HOSTNAME=Zabbix server
- ZBX_SERVER_HOST=zabbix-server
links:
- zabbix-server
networks:
- net