forked from IHTSDO/snowstorm
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
63 lines (57 loc) · 1.46 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
version: '2.1'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.11.1
container_name: elasticsearch
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- node.name=snowstorm
- cluster.name=snowstorm-cluster
- "ES_JAVA_OPTS=-Xms4g -Xmx4g"
volumes:
- elastic:/usr/share/elasticsearch/data
networks:
elastic:
aliases:
- es
healthcheck:
test: ["CMD", "curl", "-f", "http://es:9200"]
interval: 1s
timeout: 1s
retries: 60
ports:
- 127.0.0.1:9200:9200
mem_reservation: 4g
snowstorm:
image: snomedinternational/snowstorm:latest
container_name: snowstorm
restart: always
depends_on:
elasticsearch:
condition: service_healthy
entrypoint: java -Xms2g -Xmx4g --add-opens java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED -cp @/app/jib-classpath-file org.snomed.snowstorm.SnowstormApplication --elasticsearch.urls=http://es:9200
networks:
elastic:
aliases:
- snowstorm
ports:
- 8080:8080
browser:
image: snomedinternational/snomedct-browser:latest
container_name: browser
depends_on:
- snowstorm
links:
- snowstorm:snowstorm
networks:
- elastic
environment:
- API_HOST=http://snowstorm:8080/
ports:
- 80:80
restart: always
networks:
elastic:
volumes:
elastic: