-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-azure.yml
108 lines (103 loc) · 3.18 KB
/
docker-compose-azure.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
version: "3.8"
services:
demo-frontend:
build:
context: ./demo-frontend
args:
- VITE_HIGHLIGHT_URL=http://hack3rz-aws.switzerlandnorth.azurecontainer.io:${WEB_API_PORT}/api/v1/highlight
container_name: "demo-frontend"
image: hack3rzacr.azurecr.io/demo-frontend
domainname: hack3rz-aws
env_file:
- .env
ports:
- "${DEMO_FRONTEND_PORT}:${DEMO_FRONTEND_PORT}"
depends_on:
- web-api
deploy:
resources:
reservations:
cpus: "0.5"
memory: 3G
limits:
cpus: "0.5"
memory: 3G
web-api:
build: ./web-api
container_name: "web-api"
image: hack3rzacr.azurecr.io/web-api
domainname: hack3rz-aws
command: npm run start:prod
env_file:
- .env.prod
environment:
- LEX_URL=http://hack3rz-aws.switzerlandnorth.azurecontainer.io:${ANNOTATION_SERVICE_PORT}/api/v1/annotation
- PREDICT_URL=http://hack3rz-aws.switzerlandnorth.azurecontainer.io:${PREDICTION_SERVICE_PORT}/api/v1/prediction
ports:
- "${WEB_API_PORT}:${WEB_API_PORT}"
depends_on:
- prediction
- annotation
restart: always
deploy:
resources:
reservations:
cpus: "0.5"
memory: 3G
limits:
cpus: "0.5"
memory: 3G
annotation:
build: ./annotation-service
container_name: annotation-service
image: hack3rzacr.azurecr.io/annotation-service
domainname: hack3rz-aws
env_file:
- .env.prod
ports:
- "${ANNOTATION_SERVICE_PORT}:${ANNOTATION_SERVICE_PORT}"
restart: always
deploy:
resources:
reservations:
cpus: "0.5"
memory: 3G
limits:
cpus: "0.5"
memory: 3G
prediction:
build: ./prediction-service
container_name: "prediction-service"
image: hack3rzacr.azurecr.io/prediction-service
domainname: hack3rz-aws
env_file:
- .env.prod
ports:
- "${PREDICTION_SERVICE_PORT}:${PREDICTION_SERVICE_PORT}"
restart: always
deploy:
resources:
reservations:
cpus: "0.5"
memory: 3G
limits:
cpus: "0.5"
memory: 3G
training:
build: ./training-service
container_name: "training-service"
image: hack3rzacr.azurecr.io/training-service
domainname: hack3rz-aws
env_file:
- .env.prod
ports:
- "${TRAINING_SERVICE_PORT}:${TRAINING_SERVICE_PORT}"
restart: always
deploy:
resources:
reservations:
cpus: "0.5"
memory: 3G
limits:
cpus: "0.5"
memory: 3G