-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
98 lines (96 loc) · 1.99 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
version: "2"
services:
tomcat:
container_name: tomcat
build: ../eic-registry
links:
- db
- elastic
- jms
ports:
- "8080:8080"
networks:
- esnet
env_file:
- secret.env
restart: unless-stopped
db:
container_name: postgres
build: registry-postgres
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- esnet
restart: unless-stopped
jms:
container_name: jms
image: rmohr/activemq:5.14.0-alpine
ports:
- "61616:61616"
networks:
- esnet
restart: unless-stopped
elastic:
container_name: elastic
image: docker.elastic.co/elasticsearch/elasticsearch:5.2.2
#image: elasticsearch:5.6-alpine
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
mem_limit: 1g
cap_add:
- IPC_LOCK
volumes:
- esdata1:/usr/share/elasticsearch/data
# ports:
# - "9222:9200"
# - "9333:9300"
networks:
- esnet
restart: unless-stopped
elasticsearch2:
image: docker.elastic.co/elasticsearch/elasticsearch:5.2.2
#image: elasticsearch:5.6-alpine
container_name: elasticsearch2
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "discovery.zen.ping.unicast.hosts=elastic"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
mem_limit: 1g
cap_add:
- IPC_LOCK
volumes:
- esdata2:/usr/share/elasticsearch/data
networks:
- esnet
restart: unless-stopped
volumes:
esdata1:
driver: local
esdata2:
driver: local
pgdata:
driver: local
networks:
esnet:
driver: bridge