generated from nlpsandbox/phi-annotator-example
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
54 lines (51 loc) · 1.26 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
version: "3.8"
services:
phi-annotator:
image: docker.synapse.org/syn22277124/phi-annotator-spark-nlp-ner-deid-large:0.2.3
# image: docker.synapse.org/syn22277124/phi-annotator-spark-nlp-ner-deid-synthetic:0.2.3
build:
context: server
dockerfile: Dockerfile
args:
- CONFIG_NAME
- SPARK_NLP_LICENSE
- SPARK_AWS_ACCESS_KEY_ID
- SPARK_AWS_SECRET_ACCESS_KEY
- SPARK_JSL_VERSION
- NER_MODEL
- EMBEDDINGS_MODEL
container_name: phi-annotator
# environment:
# - TF_CPP_MIN_LOG_LEVEL
# - JAVA_TOOL_OPTIONS=-Xmx4G -Dorg.bytedeco.javacpp.maxBytes=0
networks:
- nlpsandbox-internal
ports:
- "8080:8080"
- "8081:8081"
deploy:
resources:
limits:
cpus: "4"
memory: 4G
nginx:
image: nginx:1.19.6-alpine
container_name: nginx
restart: always
environment:
- TOOL_HOST=phi-annotator
- TOOL_PORT=8080
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/templates:/etc/nginx/templates:ro
networks:
- nlpsandbox
- nlpsandbox-internal
ports:
- "80:80"
depends_on:
- phi-annotator
networks:
nlpsandbox:
nlpsandbox-internal:
internal: true