-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
89 lines (81 loc) · 2.28 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
version: "3.8"
services:
date-annotator:
image: docker.synapse.org/syn22277123/date-annotator-example:1.2.0
container_name: date-annotator
restart: always
networks:
- nlpsandbox-internal
person-name-annotator:
image: docker.synapse.org/syn22277123/person-name-annotator-example:1.2.0
container_name: person-name-annotator
restart: always
networks:
- nlpsandbox-internal
location-annotator:
image: docker.synapse.org/syn22277123/location-annotator-example:1.2.0
container_name: location-annotator
restart: always
networks:
- nlpsandbox-internal
contact-annotator:
image: docker.synapse.org/syn22277123/contact-annotator-example:1.2.0
container_name: contact-annotator
restart: always
networks:
- nlpsandbox-internal
id-annotator:
image: docker.synapse.org/syn22277123/id-annotator-example:1.2.0
container_name: id-annotator
restart: always
networks:
- nlpsandbox-internal
phi-deidentifier:
image: docker.synapse.org/syn22277123/phi-deidentifier-example:1.3.0
build:
context: server
dockerfile: Dockerfile
container_name: phi-deidentifier
restart: always
env_file:
- .env
environment:
- DATE_ANNOTATOR_HOST=date-annotator
- DATE_ANNOTATOR_PORT=8080
- PERSON_NAME_ANNOTATOR_HOST=person-name-annotator
- PERSON_NAME_ANNOTATOR_PORT=8080
- LOCATION_ANNOTATOR_HOST=location-annotator
- LOCATION_ANNOTATOR_PORT=8080
- CONTACT_ANNOTATOR_HOST=contact-annotator
- CONTACT_ANNOTATOR_PORT=8080
- ID_ANNOTATOR_HOST=id-annotator
- ID_ANNOTATOR_PORT=8080
networks:
- nlpsandbox-internal
depends_on:
- date-annotator
- person-name-annotator
- location-annotator
- contact-annotator
- id-annotator
nginx:
image: nginx:1.19.6-alpine
container_name: nginx
restart: always
environment:
- TOOL_HOST=phi-deidentifier
- TOOL_PORT=8080
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/templates:/etc/nginx/templates:ro
networks:
- nlpsandbox
- nlpsandbox-internal
ports:
- "${SERVER_PORT}:80"
depends_on:
- phi-deidentifier
networks:
nlpsandbox:
nlpsandbox-internal:
internal: true