-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
74 lines (69 loc) · 1.61 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
63
64
65
66
67
68
69
70
71
72
73
74
version: '3'
networks:
nta-networks:
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.110.0/24
services:
nta:
container_name: nta
build:
context: ./
volumes:
- ./:/www
privileged: true
networks:
nta-networks:
ipv4_address: 192.168.110.2
stdin_open: true
tty: true
nta-elasticsearch:
container_name: nta-elasticsearch
build: ./build/elasticSearch
environment:
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
volumes:
- ./build/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/elasticsearch.yml
- ./build/elasticsearch/data:/usr/share/elasticsearch/data
- ./build/elasticsearch/logs:/usr/share/elasticsearch/logs
hostname: elasticsearch
restart: always
privileged: true
ports:
- 9200:9200
- 9300:9300
networks:
nta-networks:
ipv4_address: 192.168.110.3
nta-kibana:
image: kibana:7.10.1
container_name: nta-kibana
environment:
- elasticsearch.hosts=http://elasticsearch:9200
hostname: kibana
depends_on:
- nta-elasticsearch
restart: always
ports:
- "5601:5601"
networks:
nta-networks:
ipv4_address: 192.168.110.4
nta-elastichd:
image: containerize/elastichd:latest
container_name: nta-elastichd
environment:
- discovery.type=single-node
depends_on:
- nta-elasticsearch
restart: always
ports:
- 9800:9800
networks:
nta-networks:
ipv4_address: 192.168.110.5
links:
- nta-elasticsearch:demo