-
Notifications
You must be signed in to change notification settings - Fork 315
/
docker-compose.yml
42 lines (39 loc) · 987 Bytes
/
docker-compose.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
---
# For development purpose only
version: "3.8"
services:
postgres-server:
image: postgres:13-alpine
environment:
POSTGRES_USER: zabbix
POSTGRES_PASSWORD: zabbix
zabbix-server:
image: zabbix/zabbix-server-pgsql:alpine-${ZABBIX_VERSION:-6.2}-latest
ports:
- 10051:10051
volumes:
- /etc/localtime:/etc/localtime:ro
environment:
POSTGRES_USER: zabbix
POSTGRES_PASSWORD: zabbix
ZBX_CACHEUPDATEFREQUENCY: 1
depends_on:
- postgres-server
zabbix-web:
image: zabbix/zabbix-web-nginx-pgsql:alpine-${ZABBIX_VERSION:-6.2}-latest
ports:
- 8888:8080
volumes:
- /etc/localtime:/etc/localtime:ro
environment:
POSTGRES_USER: zabbix
POSTGRES_PASSWORD: zabbix
depends_on:
- postgres-server
- zabbix-server
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
interval: 10s
timeout: 5s
retries: 3
start_period: 30s