-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
180 lines (176 loc) · 4.75 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
version: '2.2'
services:
db:
image: postgres:13.2-alpine
restart: always
container_name: postgreSQL-Database
environment:
POSTGRES_DB: PET
# POSTGRES_MULTIPLE_DATABASES: TEST,ZABBIX,PET,
POSTGRES_USER: test
POSTGRES_PASSWORD: 123456
volumes:
- ./pgdata:/var/lib/postgresql/data
ports:
- "127.0.0.1:5432:5432"
pgadmin:
image: dpage/pgadmin4:latest
container_name: pgAdmin
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: 123456
PGADMIN_LISTEN_PORT: 80
ports:
- "9101:80"
links:
- "db:pgsql-server"
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.1
restart: always
container_name: elasticsearch
environment:
- xpack.security.enabled=false
- ES_JAVA_OPTS=-Xms2g -Xmx2g
- "discovery.type=single-node"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
ports:
- "127.0.0.1:9200:9200"
- "127.0.0.1:9300:9300"
kibana:
image: docker.elastic.co/kibana/kibana:7.9.1
restart: always
container_name: kibana
environment:
- NODE_OPTIONS=--max-old-space-size=512
ports:
- "5601:5601"
logstash:
image: docker.elastic.co/logstash/logstash-oss:7.9.1
restart: always
container_name: logstash
# volumes:
# - ./logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml:ro
# - ./logstash/pipeline:/usr/share/logstash/pipeline:ro
ports:
- "127.0.0.1:5000:5000"
- "127.0.0.1:12201:12201/udp"
environment:
LS_JAVA_OPTS: "-Xmx256m -Xms256m"
depends_on:
- elasticsearch
rabbitmq:
image: rabbitmq:3.9.10-management
hostname: rabbitmq
container_name: rabbitmq
environment:
- RABBITMQ_DEFAULT_VHOST=/
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
restart: always
ports:
- "5672:5672"
- "15672:15672"
- "1883:1883"
- "61613:61613"
- "15674:15674"
- "15675:15675"
redis:
restart: always
container_name: redis
image: redis:alpine
ports:
- "127.0.0.1:6379:6379"
volumes:
- /data/redis-data:/data
# prometheus:
# image: prom/prometheus
# restart: 'no'
# volumes:
# - prometheus_data:/prometheus
# - ./prometheus.yml:/etc/prometheus/prometheus.yml
# ports:
# - "9090:9090"
## network_mode: host
#
# grafana:
# image: grafana/grafana
# environment:
# GF_INSTALL_PLUGINS: "grafana-clock-panel,grafana-simple-json-datasource"
# restart: 'no'
# volumes:
# - grafana_data:/var/lib/grafana
## network_mode: host
# ports:
# - "3000:3000"
# depends_on:
# - prometheus
# zabbix-server:
# image: zabbix/zabbix-server-pgsql:latest
# environment:
# DB_SERVER_HOST: db
# POSTGRES_USER: test
# POSTGRES_PASSWORD: 123456
# POSTGRES_DB: ZABBIX
# ports:
# - "10051:10051"
# volumes:
# - ./zabbix/alertscripts:/usr/lib/zabbix/alertscripts
# - ./zabbix/externalscripts:/usr/lib/zabbix/externalscripts
# - ./zabbix/modules:/var/lib/zabbix/modules
# - ./zabbix/enc:/var/lib/zabbix/enc
# - ./zabbix/ssh_keys:/var/lib/zabbix/ssh_keys
# - ./zabbix/mibs:/var/lib/zabbix/mibs
# - ./zabbix/ssl/certs:/etc/zabbix/ssl/certs:ro
# - ./zabbix/ssl/keys:/etc/zabbix/ssl/keys:ro
# - ./zabbix/ssl/ca:/etc/zabbix/ssl/ca:ro
# restart: unless-stopped
#
# zabbix-web:
# image: zabbix/zabbix-web-nginx-pgsql:latest
# environment:
# DB_SERVER_HOST: db
# POSTGRES_USER: test
# POSTGRES_PASSWORD: 123456
# POSTGRES_DB: ZABBIX
# ports:
# - "80:80"
# volumes:
# - ./zabbix/alertscripts:/usr/lib/zabbix/alertscripts
# - ./zabbix/externalscripts:/usr/lib/zabbix/externalscripts
# - ./zabbix/modules:/var/lib/zabbix/modules
# - ./zabbix/enc:/var/lib/zabbix/enc
# - ./zabbix/ssh_keys:/var/lib/zabbix/ssh_keys
# - ./zabbix/mibs:/var/lib/zabbix/mibs
# - ./zabbix/ssl/certs:/etc/zabbix/ssl/certs:ro
# - ./zabbix/ssl/keys:/etc/zabbix/ssl/keys:ro
# - ./zabbix/ssl/ca:/etc/zabbix/ssl/ca:ro
# restart: unless-stopped
#
# zabbix-agent:
# image: zabbix/zabbix-agent:latest
# environment:
# ZBX_HOSTNAME: zabbix-agent
# ZBX_SERVER_HOST: zabbix-server
# ZBX_SERVER_PORT: "10051"
# ZBX_ENABLE_REMOTE_COMMANDS: "1"
# volumes:
# - /:/mnt/hostfs:ro
# - /var/run/docker.sock:/var/run/docker.sock
# restart: unless-stopped
volumes:
db-data:
prometheus_data: { }
grafana_data: { }
elasticsearch-data:
driver: local