-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yml
36 lines (36 loc) · 979 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
version: '3'
services:
zabbix-database:
hostname: zabbix-database.local
image: postgres:alpine
environment:
POSTGRES_USER: ${DBUSER}
POSTGRES_PASSWORD: ${DBPASS}
zabbix-server:
hostname: zabbix-server.local
image: zabbix/zabbix-server-pgsql:${ZABTAG}
ports:
- 0.0.0.0:10051:10051/tcp
environment:
DB_SERVER_HOST: zabbix-database
POSTGRES_USER: ${DBUSER}
POSTGRES_PASSWORD: ${DBPASS}
POSTGRES_DB: ${DBUSER}
depends_on:
- zabbix-database
zabbix-web:
hostname: zabbix-web.local
image: zabbix/zabbix-web-nginx-pgsql:${ZABTAG}
ports:
- 0.0.0.0:8080:80/tcp
- 0.0.0.0:8443:443/tcp
environment:
ZBX_SERVER_HOST: zabbix-server
DB_SERVER_HOST: zabbix-database
POSTGRES_USER: ${DBUSER}
POSTGRES_PASSWORD: ${DBPASS}
POSTGRES_DB: ${DBUSER}
TZ: GMT
depends_on:
- zabbix-server
- zabbix-database