forked from unioslo/zabbix-auto-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
35 lines (32 loc) · 963 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
version: "3.9"
services:
db:
image: "docker.io/library/postgres:latest"
environment:
- "POSTGRES_DB=zabbix"
- "POSTGRES_PASSWORD=${ZABBIX_PASSWORD:?Need env: ZABBIX_PASSWORD}"
- "POSTGRES_USER=zabbix"
zabbix-web-nginx:
image: "docker.io/zabbix/zabbix-web-nginx-pgsql:${TAG:?Need env: TAG}"
depends_on:
- "db"
environment:
- "DB_SERVER_HOST=db"
- "PHP_TZ=Europe/Oslo"
- "POSTGRES_DB=zabbix"
- "POSTGRES_PASSWORD=${ZABBIX_PASSWORD:?Need env: ZABBIX_PASSWORD}"
- "POSTGRES_USER=zabbix"
- "ZBX_SERVER_HOST=zabbix-server"
ports:
- "8080:8080"
zabbix-server:
image: "docker.io/zabbix/zabbix-server-pgsql:${TAG:?Need env: TAG}"
depends_on:
- "db"
environment:
- "DB_SERVER_HOST=db"
- "POSTGRES_DB=zabbix"
- "POSTGRES_PASSWORD=${ZABBIX_PASSWORD:?Need env: ZABBIX_PASSWORD}"
- "POSTGRES_USER=zabbix"
ports:
- "5432:5432"