-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
47 lines (47 loc) · 1.19 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
44
45
46
47
version: "3.5"
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.4.2
container_name: elastic
hostname: elastic
user: ${UID}
labels:
- "traefik.port=9200"
- "traefik.frontend.rule=Host:elastic.docker.localhost"
environment:
discovery.type: single-node
ES_JAVA_OPTS: -Xms384m -Xmx384m
volumes:
- esdata:/usr/share/elasticsearch/data:rw
kibana:
image: docker.elastic.co/kibana/kibana-oss:7.4.2
container_name: kibana
hostname: kibana
labels:
- "traefik.port=5601"
- "traefik.frontend.rule=Host:kibana.docker.localhost"
environment:
SERVER_NAME: kibana
ELASTICSEARCH_URL: http://elasticsearch:9200
depends_on:
- elasticsearch
traefik:
image: traefik:maroilles-alpine
container_name: traefik
command: --api --docker
user: root
ports:
- 80:80
labels:
- "traefik.port=8080"
- "traefik.frontend.rule=Host:traefik.docker.localhost"
depends_on:
- elasticsearch
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
volumes:
esdata:
driver_opts:
type: none
device: $PWD/data/elastic
o: bind