-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
44 lines (42 loc) · 1.02 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
version: "3.9"
services:
grounding:
image: pathwaycommons/grounding-search:0.6.0
restart: unless-stopped
container_name: grounding
depends_on:
- index
ports:
- "3000:3000"
environment:
ELASTICSEARCH_HOST: "index:9200"
SWAGGER_HOST: "localhost:3000"
networks:
- grounding-search-network
command: ["./wait-for-elasticsearch.sh", "index:9200", "npm", "run", "boot"]
index:
image: docker.elastic.co/elasticsearch/elasticsearch:8.7.0
restart: unless-stopped
container_name: index
ports:
- "9200:9200"
- "9300:9300"
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- discovery.type=single-node
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms2g -Xmx2g"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- in-data:/usr/share/elasticsearch/data
networks:
- grounding-search-network
volumes:
in-data:
networks:
grounding-search-network:
driver: bridge