-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker_compose_zabbix_from_atos_dockerhub.yml
100 lines (97 loc) · 3.23 KB
/
docker_compose_zabbix_from_atos_dockerhub.yml
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
version: '3.6'
services:
zabbix-server:
image: atosorigin/bull-sequana-edge-zabbix-server:${MISM_BULLSEQUANA_EDGE_VERSION}
ports:
- 10051:10051
expose:
- 10051
user: root
privileged : true
restart: always
container_name: zabbix-server
hostname: zabbix-server
volumes:
- /etc/localtime:/etc/localtime:ro
- ./zabbix/server/alertscripts:/usr/lib/zabbix/alertscripts:rw
- ./zabbix/server/externalscripts:/usr/lib/zabbix/externalscripts:rw
- ./zabbix/agent/zabbix_agentd.psk:/etc/zabbix/zabbix_agentd.psk:ro
- /var/log/rsyslog:/var/log/zabbix/rsyslog:rw
# - ./zabbix/dockerdata/server/modules:/var/lib/zabbix/modules
# - ./zabbix/dockerdata/server/enc:/var/lib/zabbix/enc
# - ./zabbix/dockerdata/server/ssh_keys:/var/lib/zabbix/ssh_keys
# - ./zabbix/dockerdata/server/ssl/certs:/var/lib/zabbix/ssl/certs
# - ./zabbix/dockerdata/server/ssl/keys:/var/lib/zabbix/ssl/keys
# - ./zabbix/dockerdata/server/ssl/ssl_ca:/var/lib/zabbix/ssl/ssl_ca
# - /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime
# - ./zabbix/zabbix_server.conf:/etc/zabbix/zabbix_server.conf
depends_on:
- zabbix-postgres
env_file:
- Dockerfiles/zabbix.env
environment:
PHP_TZ: ${timezone}
zabbix-web:
image: atosorigin/bull-sequana-edge-zabbix-web:${MISM_BULLSEQUANA_EDGE_VERSION}
restart: always
container_name: zabbix-web
env_file:
- Dockerfiles/zabbix.env
environment:
PHP_TZ: ${timezone}
ports:
- 4443:443
volumes:
- /etc/localtime:/etc/localtime:ro
- ./zabbix/ssl:/etc/ssl/nginx:ro
user: root
depends_on:
- zabbix-server
links:
- zabbix-server:zabbix-server
zabbix-agent:
image: atosorigin/bull-sequana-edge-zabbix-agent:${MISM_BULLSEQUANA_EDGE_VERSION}
ports:
- 10050:10050
expose:
- 10050
user: root
privileged : true
depends_on:
- zabbix-server
restart: always
container_name: zabbix-agent
hostname: zabbix-agent
env_file:
- Dockerfiles/zabbix.env
environment:
PHP_TZ: ${timezone}
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/log/rsyslog:/var/log/zabbix/rsyslog:rw
- ./zabbix/agent/zabbix_agentd.conf:/etc/zabbix/zabbix_agentd.conf:Z
- ./zabbix/agent/zabbix_agentd.psk:/etc/zabbix/zabbix_agentd.psk:Z
# - ./zabbix/agent/zabbix_agentd.userparams.conf:/etc/zabbix/zabbix_agentd.d/zabbix_agentd.userparams.conf:Z
# - ./zabbix/externalscripts:/usr/lib/zabbix/externalscripts:rw
# - ./zabbix/alertscripts:/usr/lib/zabbix/alertscripts:rw
# - ./zabbix/agent/modules:/var/lib/zabbix/modules
- ./zabbix/agent/zabbix_agentd.d:/etc/zabbix/zabbix_agentd.d
links:
- zabbix-server:zabbix-server
zabbix-postgres:
image: postgres:${POSTGRES_ZABBIX_BULLSEQUANA_EDGE_VERSION}
container_name: zabbix-postgres
hostname: zabbix-postgres
restart: always
env_file:
- Dockerfiles/zabbix.env
environment:
PGDATA: /var/lib/postgresql/data/pgdata
PHP_TZ: ${timezone}
ports:
- 5555:5432
expose:
- 5555
volumes:
- /etc/localtime:/etc/localtime:ro
- ./zabbix/pgdata:/var/lib/postgresql/data/pgdata:Z