blob: bba6791db6de934a8c7cd413c989fc49dc52447f [file] [log] [blame]
ac25505082fd72018-03-20 12:35:48 +01001version: '3.1'
2
3services:
4 elasticsearch:
ac25504ac26de2018-09-18 14:09:22 +02005 image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.1.3
ac25505082fd72018-03-20 12:35:48 +01006 ports:
7 - 9200:9200
8 networks:
9 es_net:
10 aliases:
11 - elasticsearch
ac255007401e82018-09-10 15:32:48 +020012 environment:
13 - cluster.name=docker-cluster
14 - bootstrap.memory_lock=false
15 - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ac25505082fd72018-03-20 12:35:48 +010016
17 logstash:
ac25504ac26de2018-09-18 14:09:22 +020018 image: docker.elastic.co/logstash/logstash-oss:6.1.3
ac25505082fd72018-03-20 12:35:48 +010019 volumes:
20 - ./logstash-conf:/config-dir
osgn422w67ca7eb2018-09-04 17:00:19 +020021 - ./logstash-input:/log-input
ac25505082fd72018-03-20 12:35:48 +010022 command: logstash -f /config-dir/logstash.conf
23 depends_on:
24 - elasticsearch
25 networks:
26 es_net:
ac2550792d8022018-03-27 13:31:03 +020027 environment:
28 - dmaap_base_url=http://localhost:3904/
29 - dmaap_user=user
30 - dmaap_password=password
31 - dmaap_consumer_group=CG42
32 - dmaap_consumer_id=C42
33 - event_topic=EVENT_TOPIC
34 - notification_topic=NOTIFICATION_TOPIC
35 - request_topic=REQUEST_TOPIC
ac255007401e82018-09-10 15:32:48 +020036 - elasticsearch_hosts=elasticsearch
ac25505082fd72018-03-20 12:35:48 +010037
38 kibana:
ac25504ac26de2018-09-18 14:09:22 +020039 image: docker.elastic.co/kibana/kibana-oss:6.1.3
ac25505082fd72018-03-20 12:35:48 +010040 ports:
41 - 5601:5601
42 depends_on:
43 - elasticsearch
44 networks:
45 es_net:
46
47 backup:
48 image: taskrabbit/elasticsearch-dump
49 depends_on:
50 - elasticsearch
51 command:
52 - --input=http://elasticsearch:9200/.kibana
53 - --output=/backups/backup.json
54 - --type=data
55 volumes:
56 - ./es_backup/:/backups/
57 networks:
58 es_net:
59
60 restore:
61 image: taskrabbit/elasticsearch-dump
62 depends_on:
63 - elasticsearch
64 command:
65 - --output=http://elasticsearch:9200/.kibana
66 - --input=/backups/backup.json
67 - --type=data
68 volumes:
69 - ./es_backup/:/backups/
70 networks:
71 es_net:
72
73 default:
74 image: taskrabbit/elasticsearch-dump
75 depends_on:
76 - elasticsearch
77 command:
78 - --output=http://elasticsearch:9200/.kibana
79 - --input=/backups/default.json
80 - --type=data
81 volumes:
82 - ./es_backup/:/backups/
83 networks:
84 es_net:
85
86
87networks:
88 es_net: