aboutsummaryrefslogtreecommitdiffstats
path: root/extra/docker/elk/docker-compose.yml
blob: ded2c6b01949b1b9de9f8d8708a199a19ce220ab (plain)
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
version: '3.1'

services:
  elasticsearch:
    image: elasticsearch
    ports:
      - 9200:9200
    networks:
      es_net:
        aliases:
          - elasticsearch

  logstash:
    image: logstash
    volumes:
      - ./logstash-conf:/config-dir
    command: logstash -f /config-dir/logstash.conf
    depends_on:
      - elasticsearch
    networks:
      es_net:
    environment:

  kibana:
    image: kibana
    ports:
      - 5601:5601
    depends_on:
      - elasticsearch
    networks:
      es_net:

  backup:
    image: taskrabbit/elasticsearch-dump
    depends_on:
      - elasticsearch
    command:
      - --input=http://elasticsearch:9200/.kibana
      - --output=/backups/backup.json
      - --type=data
    volumes:
      - ./es_backup/:/backups/
    networks:
      es_net:

  restore:
    image: taskrabbit/elasticsearch-dump
    depends_on:
      - elasticsearch
    command:
      - --output=http://elasticsearch:9200/.kibana
      - --input=/backups/backup.json
      - --type=data
    volumes:
      - ./es_backup/:/backups/
    networks:
      es_net:

  default:
    image: taskrabbit/elasticsearch-dump
    depends_on:
      - elasticsearch
    command:
      - --output=http://elasticsearch:9200/.kibana
      - --input=/backups/default.json
      - --type=data
    volumes:
      - ./es_backup/:/backups/
    networks:
      es_net:


networks:
  es_net: