-
Notifications
You must be signed in to change notification settings - Fork 170
/
docker-compose.yml
43 lines (42 loc) · 1.09 KB
/
docker-compose.yml
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
version: "3"
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.14.2
container_name: ws2_es
environment:
- discovery.type=single-node
deploy:
resources:
limits:
cpus: '2.00'
memory: 2000M
reservations:
cpus: '2.00'
memory: 2000M
volumes:
- esdata:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- elastic
labels:
- co.elastic.logs/module=elasticsearch
- co.elastic.metrics/module=elasticsearch
kibana:
image: docker.elastic.co/kibana/kibana:7.14.2
container_name: ws2_kibana
ports:
- 5601:5601
depends_on:
- elasticsearch
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
ELASTICSEARCH_HOSTS: http://elasticsearch:9200
networks:
- elastic
networks:
elastic:
driver: bridge
volumes:
esdata:
driver: local