ac2550 | 5082fd7 | 2018-03-20 12:35:48 +0100 | [diff] [blame] | 1 | version: '3.1' |
| 2 | |
| 3 | services: |
| 4 | elasticsearch: |
| 5 | image: elasticsearch |
| 6 | ports: |
| 7 | - 9200:9200 |
| 8 | networks: |
| 9 | es_net: |
| 10 | aliases: |
| 11 | - elasticsearch |
| 12 | |
| 13 | logstash: |
| 14 | image: logstash |
| 15 | volumes: |
| 16 | - ./logstash-conf:/config-dir |
| 17 | command: logstash -f /config-dir/logstash.conf |
| 18 | depends_on: |
| 19 | - elasticsearch |
| 20 | networks: |
| 21 | es_net: |
ac2550 | 5082fd7 | 2018-03-20 12:35:48 +0100 | [diff] [blame] | 22 | |
| 23 | kibana: |
| 24 | image: kibana |
| 25 | ports: |
| 26 | - 5601:5601 |
| 27 | depends_on: |
| 28 | - elasticsearch |
| 29 | networks: |
| 30 | es_net: |
| 31 | |
| 32 | backup: |
| 33 | image: taskrabbit/elasticsearch-dump |
| 34 | depends_on: |
| 35 | - elasticsearch |
| 36 | command: |
| 37 | - --input=http://elasticsearch:9200/.kibana |
| 38 | - --output=/backups/backup.json |
| 39 | - --type=data |
| 40 | volumes: |
| 41 | - ./es_backup/:/backups/ |
| 42 | networks: |
| 43 | es_net: |
| 44 | |
| 45 | restore: |
| 46 | image: taskrabbit/elasticsearch-dump |
| 47 | depends_on: |
| 48 | - elasticsearch |
| 49 | command: |
| 50 | - --output=http://elasticsearch:9200/.kibana |
| 51 | - --input=/backups/backup.json |
| 52 | - --type=data |
| 53 | volumes: |
| 54 | - ./es_backup/:/backups/ |
| 55 | networks: |
| 56 | es_net: |
| 57 | |
| 58 | default: |
| 59 | image: taskrabbit/elasticsearch-dump |
| 60 | depends_on: |
| 61 | - elasticsearch |
| 62 | command: |
| 63 | - --output=http://elasticsearch:9200/.kibana |
| 64 | - --input=/backups/default.json |
| 65 | - --type=data |
| 66 | volumes: |
| 67 | - ./es_backup/:/backups/ |
| 68 | networks: |
| 69 | es_net: |
| 70 | |
| 71 | |
| 72 | networks: |
| 73 | es_net: |