-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
37 lines (34 loc) · 996 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
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"
ports:
- "5432:5432"
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:
- "10051:10051"