-
Notifications
You must be signed in to change notification settings - Fork 228
/
docker-compose.yml
62 lines (58 loc) · 1.38 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
56
57
58
59
60
61
62
version: "2"
services:
pastehunter:
build: .
container_name: pastehunter
volumes:
- ./logs:/usr/src/pastehunter/logs
- ~/.config/pastehunter.json:/root/.config/pastehunter.json
networks:
esnet:
ipv4_address: 172.16.10.11
depends_on:
- "elasticsearch"
- "kibana"
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.4.2
container_name: elasticsearch
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- xpack.security.enabled=false
- xpack.monitoring.enabled=false
- xpack.ml.enabled=false
- xpack.graph.enabled=false
- xpack.watcher.enabled=false
- discovery.zen.minimum_master_nodes=1
- discovery.type=single-node
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1g
volumes:
- esdata1:/usr/share/elasticsearch/data
ports:
- "127.0.0.1:9200:9200"
networks:
esnet:
ipv4_address: 172.16.10.10
kibana:
image: docker.elastic.co/kibana/kibana:6.4.2
container_name: kibana
ports:
- "127.0.0.1:5601:5601"
networks:
esnet:
ipv4_address: 172.16.10.12
depends_on:
- "elasticsearch"
volumes:
esdata1:
networks:
esnet:
driver: bridge
ipam:
config:
- subnet: 172.16.10.0/24