Remove libssl-dev installation from install_osmclient
[osm/devops.git] / installers / docker / osm_elk / docker-compose.yml
1 version: '3'
2
3 volumes:
4   elasticsearch_data:
5
6 services:
7
8   filebeat:
9     image: docker.elastic.co/beats/filebeat:${ELASTIC_VERSION:-6.4.2}
10     hostname: "{{.Node.Hostname}}-filebeat"
11     user: root
12     networks:
13       - elk
14     volumes:
15       - /var/run/docker.sock:/var/run/docker.sock
16       - /var/lib/docker/containers/:/var/lib/docker/containers/:ro
17       - ./filebeat.yml:/usr/share/filebeat/filebeat.yml
18     command: ["--strict.perms=false"]
19
20   metricbeat:
21     image: docker.elastic.co/beats/metricbeat:${ELASTIC_VERSION:-6.4.2}
22     user: root
23     deploy:
24       mode: global
25     volumes:
26       - /proc:/hostfs/proc:ro
27       - /sys/fs/cgroup:/hostfs/sys/fs/cgroup:ro
28       - /:/hostfs:ro
29       - ./metricbeat.yml:/usr/share/metricbeat/metricbeat.yml
30       - /var/run/docker.sock:/var/run/docker.sock:ro
31     command: --strict.perms=false -e -c /usr/share/metricbeat/metricbeat.yml -system.hostfs=/hostfs # -e flag to log to stderr and disable syslog/file output
32     networks:
33       - elk
34     depends_on: ['elasticsearch', 'kibana']
35
36   elasticsearch:
37     image: docker.elastic.co/elasticsearch/elasticsearch-oss:${ELASTIC_VERSION:-6.4.2}
38     volumes:
39       - ./elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
40       - elasticsearch_data:/usr/share/elasticsearch/data
41     ports:
42       - "9200:9200"
43     environment:
44       ES_JAVA_OPTS: "-Xmx256m -Xms256m"
45     networks:
46       - elk
47
48   kibana:
49     image: docker.elastic.co/kibana/kibana-oss:${ELASTIC_VERSION:-6.4.2}
50     volumes:
51       - ./kibana.yml:/usr/share/kibana/config/kibana.yml:ro
52     ports:
53       - "5601:5601"
54     networks:
55       - elk
56     depends_on:
57       - elasticsearch
58
59 networks:
60   elk:
61     external:
62       name: ${OSM_NETWORK:-netosm}