ac2550 | 5082fd7 | 2018-03-20 12:35:48 +0100 | [diff] [blame] | 1 | version: '3.1' |
| 2 | |
| 3 | services: |
| 4 | elasticsearch: |
ac2550 | 07401e8 | 2018-09-10 15:32:48 +0200 | [diff] [blame] | 5 | image: docker.elastic.co/elasticsearch/elasticsearch:6.1.3 |
ac2550 | 5082fd7 | 2018-03-20 12:35:48 +0100 | [diff] [blame] | 6 | ports: |
| 7 | - 9200:9200 |
| 8 | networks: |
| 9 | es_net: |
| 10 | aliases: |
| 11 | - elasticsearch |
ac2550 | 07401e8 | 2018-09-10 15:32:48 +0200 | [diff] [blame] | 12 | environment: |
| 13 | - cluster.name=docker-cluster |
| 14 | - bootstrap.memory_lock=false |
| 15 | - "ES_JAVA_OPTS=-Xms512m -Xmx512m" |
ac2550 | 5082fd7 | 2018-03-20 12:35:48 +0100 | [diff] [blame] | 16 | |
| 17 | logstash: |
ac2550 | 07401e8 | 2018-09-10 15:32:48 +0200 | [diff] [blame] | 18 | image: docker.elastic.co/logstash/logstash:6.1.3 |
ac2550 | 5082fd7 | 2018-03-20 12:35:48 +0100 | [diff] [blame] | 19 | volumes: |
| 20 | - ./logstash-conf:/config-dir |
osgn422w | 67ca7eb | 2018-09-04 17:00:19 +0200 | [diff] [blame] | 21 | - ./logstash-input:/log-input |
ac2550 | 5082fd7 | 2018-03-20 12:35:48 +0100 | [diff] [blame] | 22 | command: logstash -f /config-dir/logstash.conf |
| 23 | depends_on: |
| 24 | - elasticsearch |
| 25 | networks: |
| 26 | es_net: |
ac2550 | 792d802 | 2018-03-27 13:31:03 +0200 | [diff] [blame] | 27 | 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 |
ac2550 | 07401e8 | 2018-09-10 15:32:48 +0200 | [diff] [blame] | 36 | - elasticsearch_hosts=elasticsearch |
ac2550 | 5082fd7 | 2018-03-20 12:35:48 +0100 | [diff] [blame] | 37 | |
| 38 | kibana: |
ac2550 | 07401e8 | 2018-09-10 15:32:48 +0200 | [diff] [blame] | 39 | image: docker.elastic.co/kibana/kibana:6.1.3 |
ac2550 | 5082fd7 | 2018-03-20 12:35:48 +0100 | [diff] [blame] | 40 | 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 | |
| 87 | networks: |
| 88 | es_net: |