-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
42 lines (38 loc) · 958 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:15-alpine
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: zabbix
POSTGRES_PASSWORD: zabbix
zabbix-server:
image: zabbix/zabbix-server-pgsql:alpine-${ZABBIX_VERSION:-6.4}-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.4}-latest
ports:
- 8080:8080
volumes:
- /etc/localtime:/etc/localtime:ro
environment:
POSTGRES_USER: zabbix
POSTGRES_PASSWORD: zabbix
ZBX_SERVER_HOST: zabbix-server
depends_on:
- postgres-server
- zabbix-server
volumes:
postgres_data: {}