-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
55 lines (55 loc) · 1.3 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
55
version: '3'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.4
networks:
- elk
environment:
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "discovery.zen.ping.unicast.hosts=elasticsearch"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
mem_limit: 1g
volumes:
- 'esdata:/usr/share/elasticsearch/data'
- './etc/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro'
kibana:
image: docker.elastic.co/kibana/kibana:5.6.4
networks:
- elk
volumes:
- './etc/kibana.yml:/usr/share/kibana/config/kibana.yml:ro'
links:
- elasticsearch
nginx:
image: nginx:alpine
volumes:
- './etc/nginx.conf:/etc/nginx/nginx.conf:ro'
- './dalek:/usr/share/nginx/html:ro'
- './etc/.htpasswd:/etc/nginx/.htpasswd:ro'
- './etc/fullchain.pem:/etc/nginx/ssl/fullchain.pem:ro'
- './etc/privkey.pem:/etc/nginx/ssl/privkey.pem:ro'
links:
- elasticsearch
- kibana
depends_on:
- elasticsearch
- kibana
ports:
- '80:80'
- '443:443'
environment:
- SERVER_DOMAIN
networks:
- elk
volumes:
esdata:
networks:
elk:
driver: bridge