-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
83 lines (81 loc) · 2.56 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
# Nictiz <[email protected]>, adapted from https://github.com/IHTSDO/snowstorm/ by SNOMED International <[email protected]>
version: '2.1'
services:
# Using the published docker image for elasticsearch 7.7.0, as this is the latest supported version for snowstorm.
# Update the version number according to changes on the IHTSDO snowstorm GitHub https://github.com/IHTSDO/snowstorm/blob/master/docs/getting-started.md
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.7.0
container_name: elasticsearch
environment:
- node.name=snowstorm
- cluster.name=snowstorm-cluster
- cluster.initial_master_nodes=snowstorm
- "ES_JAVA_OPTS=-Xms8g -Xmx8g"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
volumes:
- elastic_data:/usr/share/elasticsearch/data
networks:
snowstorm_network:
aliases:
- es
healthcheck:
test: ["CMD", "curl", "-f", "http://es:9200"]
interval: 10s
timeout: 2s
retries: 280
ports:
- 9200:9200
mem_reservation: 4g
nginx:
# image: nginx
build:
context: .
dockerfile: Dockerfile
expose:
- 80
networks:
- snowstorm_network
- proxy
environment:
- VIRTUAL_HOST=snowstorm.test-nictiz.nl
- VIRTUAL_PORT=80
- LETSENCRYPT_HOST=snowstorm.test-nictiz.nl
snowstorm:
image: snomedinternational/snowstorm:latest
container_name: snowstorm
depends_on:
elasticsearch:
condition: service_healthy
# Read only database:
# >> --snowstorm.rest-api.readonly=true
# Write allowed: (required for creating the database indices)
# >> --snowstorm.rest-api.readonly=false
# Remove --spring.autoconfigure.exclude=org.springframework.cloud.aws.autoconfigure.context.ContextStac when deploying on AWS
entrypoint: java -Xms6g -Xmx6g -jar snowstorm.jar
--elasticsearch.urls=http://es:9200
--snowstorm.rest-api.readonly=true
--snowstorm.rest-api.allowUnlimitedConceptPagination=true
--spring.autoconfigure.exclude=org.springframework.cloud.aws.autoconfigure.context.ContextStackAutoConfiguration
--spring.servlet.multipart.max-file-size=1000MB
--spring.servlet.multipart.max-request-size=1000MB
networks:
snowstorm_network:
aliases:
- snow
ports:
- 8080:8080
networks:
snowstorm_network:
external: false
name: snowstorm_network
proxy:
external: true
volumes:
elastic_data: