-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
54 lines (51 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
44
45
46
47
48
49
50
51
52
53
54
version: '2.1'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.2.4
container_name: elasticsearch
hostname: elasticsearch
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata1:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- elk
kibana:
image: docker.elastic.co/kibana/kibana:6.2.4
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
container_name: kibana
hostname: kibana
ports:
- 5601:5601
networks:
- elk
depends_on:
- elasticsearch
user:
image: hemeda2/basic-user-webservice:latest
ports:
- 8080:8080
networks:
- elk
depends_on:
- elasticsearch
hostname: user
container_name: user
environment:
- SPRING_PROFILES_ACTIVE=development
- CONFIG_SERVER_URL=http://config:8888
networks:
elk:
driver: bridge
volumes:
esdata1:
driver: local