-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose-prod-elk.yml
50 lines (44 loc) · 1.06 KB
/
docker-compose-prod-elk.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
version: "2"
services:
elasticsearch:
image: ${REGISTRY_URL}/elasticsearch:${IMAGE_TAG}
extends:
file: common-services.yml
service: elasticsearch
volumes:
- ${ES_DATA_HOME}:/usr/share/elasticsearch/data
- ${ES_BACKUP_HOME}:/usr/share/elasticsearch/backups
restart: "unless-stopped"
logstash:
image: ${REGISTRY_URL}/logstash:${IMAGE_TAG}
extends:
file: common-services.yml
service: logstash
restart: "unless-stopped"
kibana:
image: ${REGISTRY_URL}/kibana:${IMAGE_TAG}
extends:
file: common-services.yml
service: kibana
restart: "unless-stopped"
nginx:
image: ${REGISTRY_URL}/nginx-elk:${IMAGE_TAG}
extends:
file: common-services.yml
service: nginx
volumes:
- ${ES_HTPASSWD_PATH}:/usr/share/nginx/conf.d/.htpasswd
depends_on:
- kibana
- elasticsearch
- logstash
restart: "unless-stopped"
# headplug:
# extends:
# file: common-services.yml
# service: headplug
# ports:
# - 9100:9100
volumes:
esdata:
esbackup: