-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
149 lines (141 loc) · 3.33 KB
/
Copy pathdocker-compose.yml
File metadata and controls
149 lines (141 loc) · 3.33 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
services:
postgres:
image: postgres:16.9
container_name: zabbix-postgres
restart: always
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- zbx_db_data:/var/lib/postgresql/data
networks:
- zabbix-network
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
labels:
- "com.zabbix.role=database"
zabbix-server:
image: zabbix/zabbix-server-pgsql:alpine-7.0-latest
container_name: zabbix-server
restart: always
environment:
DB_SERVER_HOST: postgres
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
depends_on:
- postgres
ports:
- "10051:10051"
networks:
- zabbix-network
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
labels:
- "com.zabbix.role=server"
zabbix-agent:
image: zabbix/zabbix-agent2:alpine-7.0-latest
container_name: zabbix-agent
restart: always
environment:
ZBX_SERVER_HOST: zabbix-server
ZBX_HOSTNAME: docker-agent
depends_on:
- zabbix-server
ports:
- "10050:10050"
networks:
- zabbix-network
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
labels:
- "com.zabbix.role=agent"
zabbix-web-nginx:
image: zabbix/zabbix-web-nginx-pgsql:alpine-7.0-latest
container_name: zabbix-web
restart: always
environment:
DB_SERVER_HOST: postgres
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ZBX_SERVER_HOST: zabbix-server
PHP_TZ: America/Sao_Paulo
depends_on:
- zabbix-server
- postgres
ports:
- "80:8080"
- "443:8443"
networks:
- zabbix-network
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
labels:
- "com.zabbix.role=web"
grafana:
image: grafana/grafana:10.4.2
container_name: grafana
restart: always
environment:
GF_SECURITY_ADMIN_USER: ${GF_SECURITY_ADMIN_USER}
GF_SECURITY_ADMIN_PASSWORD: ${GF_SECURITY_ADMIN_PASSWORD}
GF_INSTALL_PLUGINS: alexanderzobnin-zabbix-app
volumes:
- grafana_data:/var/lib/grafana
- ./grafana_config/grafana.ini:/etc/grafana/grafana.ini
- ./grafana_config/provisioning:/etc/grafana/provisioning
ports:
- "3000:3000"
networks:
- zabbix-network
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
labels:
- "com.zabbix.role=grafana"
prometheus:
image: prom/prometheus
container_name: prometheus
restart: always
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
networks:
- zabbix-network
jenkins:
image: jenkins/jenkins:lts
container_name: jenkins
restart: always
volumes:
- jenkins_data:/var/jenkins_home
ports:
- "8080:8080"
- "50000:50000"
networks:
- default
volumes:
zbx_db_data:
grafana_data:
jenkins_data:
networks:
zabbix-network:
driver: bridge
default:
driver: bridge