-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
119 lines (114 loc) · 2.94 KB
/
docker-compose.yml
File metadata and controls
119 lines (114 loc) · 2.94 KB
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
109
110
111
112
113
114
115
116
117
118
119
services:
streaming-api:
image: ${STREAMING_API_IMAGE}
ports:
- "8080:8080"
environment:
- AAI_WSS_PORT=8080
- AAI_LOG_LEVEL=INFO
- AAI_USE_STRUCTURED_LOGGING=False
- AAI_ASR_ENDPOINT=streaming-asr-lb:80
- AAI_USE_SECURE_CHANNEL_TO_ASR_SERVICE=False
- AAI_LICENSE_AND_USAGE_PROXY_ENDPOINT=http://license-and-usage-proxy:8080
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/v3/ws/health"]
interval: 10s
timeout: 2s
retries: 2
start_period: 5s
depends_on:
- streaming-asr-lb
- license-and-usage-proxy
networks:
- streaming-network
streaming-asr-lb:
image: nginx:alpine
ports:
- "8081:80"
healthcheck:
test: [ "CMD", "curl", "-fsS", "http://localhost:80/nginx_health" ]
interval: 10s
timeout: 2s
retries: 2
start_period: 10s
volumes:
- ./nginx_streaming_asr.conf:/etc/nginx/nginx.conf:ro
depends_on:
- streaming-asr-english
- streaming-asr-multilang
networks:
- streaming-network
streaming-asr-english:
image: ${STREAMING_ASR_ENGLISH_IMAGE}
ports:
- "50051:50051"
environment:
- SERVER_PORT=50051
- LOGGING_LEVEL=INFO
- USE_STRUCTURED_LOGGING=False
- MAX_OPEN_STREAMS=48
healthcheck:
test: ["CMD", "grpc_health_probe", "-addr=:50051"]
interval: 10s
timeout: 2s
retries: 5
start_period: 120s
networks:
- streaming-network
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [ "gpu" ]
streaming-asr-multilang:
image: ${STREAMING_ASR_MULTILANG_IMAGE}
ports:
- "50052:50051"
environment:
- SERVER_PORT=50051
- LOGGING_LEVEL=INFO
- USE_STRUCTURED_LOGGING=False
- MAX_OPEN_STREAMS=48
healthcheck:
test: ["CMD", "grpc_health_probe", "-addr=:50051"]
interval: 10s
timeout: 2s
retries: 5
start_period: 120s
networks:
- streaming-network
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [ "gpu" ]
license-and-usage-proxy:
image: ${LICENSE_AND_USAGE_PROXY_IMAGE}
ports:
- "8082:8080"
environment:
- HTTP_PORT=8080
- LOGGING_LEVEL=INFO
- USE_STRUCTURED_LOGGING=False
- LICENSE_FILE_PATH=/var/aai_license.jwt
- USAGE_TRACKING_API_KEY=${USAGE_TRACKING_API_KEY} # Set if license is for usage-based billing
volumes:
- ./license.jwt:/var/aai_license.jwt:ro
healthcheck:
test: [ "CMD", "curl", "-fsS", "http://localhost:8080/health" ]
interval: 10s
timeout: 2s
retries: 2
start_period: 10s
networks:
- streaming-network
networks:
streaming-network:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16