-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (54 loc) · 1.26 KB
/
docker-compose.yml
File metadata and controls
58 lines (54 loc) · 1.26 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
version: '3.7'
services:
zabbix:
restart: unless-stopped
container_name: zabbix-srv-pstgrs
image: zabbix/zabbix-server-pgsql:trunk-ubuntu
ports:
- "10051:10051"
environment:
DB_SERVER_HOST: zabbix-db-pstgrs
POSTGRES_USER: radmin
POSTGRES_PASSWORD: postpass1234567
depends_on:
- postgres
networks:
- zabbix_net
nginx:
restart: unless-stopped
container_name: zabbix-web-nginx
image: zabbix/zabbix-web-nginx-pgsql:ubuntu-trunk
environment:
DB_SERVER_HOST: zabbix-db-pstgrs
POSTGRES_USER: radmin
POSTGRES_PASSWORD: postpass1234567
ZBX_SERVER_HOST: zabbix-srv-pstgrs
PHP_TZ: Asia/Tehran
ports:
- "8080:8080"
depends_on:
- zabbix
networks:
- zabbix_net
postgres:
restart: unless-stopped
container_name: zabbix-db-pstgrs
image: postgres:latest
volumes:
- zabbixDB:/var/lib/postgresql
environment:
POSTGRES_USER: radmin
POSTGRES_PASSWORD: postpass1234567
expose:
- "5432"
ports:
- "5432:5432"
networks:
- zabbix_net
volumes:
zabbixDB:
name: zabbixDB
networks:
zabbix_net:
driver: bridge
name: zabbix_net