-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.license-proxy.yml
81 lines (62 loc) · 2.72 KB
/
docker-compose.license-proxy.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
# Make sure to replace placeholder paths to config files and model directories
x-env: &env
environment:
# Make sure you `export` your self-hosted API key secret in your local environment
DEEPGRAM_API_KEY: "${DEEPGRAM_API_KEY}"
DEEPGRAM_DEPLOYMENT_ORCHESTRATOR: "docker-compose"
services:
# The speech API service.
api:
image: quay.io/deepgram/self-hosted-api:release-241226
# Here we expose the API port to the host machine. The container port
# (right-hand side) must match the port that the API service is listening
# on (from its configuration file).
ports:
- "8080:8080"
<<: *env
# The path on the left of the colon ':' should point to files/directories on the host machine.
# The path on the right of the colon ':' is an in-container path. It must match the path
# specified in the `command` header below.
volumes:
- "/path/to/api.toml:/api.toml:ro,Z"
# Invoke the API server
command: -v serve /api.toml
# Make sure the License Proxy is available for licensing
depends_on:
- license-proxy
# The speech engine service.
engine:
image: quay.io/deepgram/self-hosted-engine:release-241226
# Utilize a GPU, if available.
runtime: nvidia
ports:
- "9991:9991"
<<: *env
# The path on the left of the colon ':' should point to files/directories on the host machine.
# The path on the right of the colon ':' is an in-container path.
volumes:
# In-container models path below must match the one specified in the Engine configuration file. The default location is "/models"
- "/path/to/models:/models:ro,Z"
# In-container config path below must match the path specified in the `command` header below.
- "/path/to/engine.toml:/engine.toml:ro,Z"
# Invoke the Engine service
command: -v serve /engine.toml
# Make sure the License Proxy is available for licensing
depends_on:
- license-proxy
# The service to validate your Deepgram license
license-proxy:
image: quay.io/deepgram/self-hosted-license-proxy:release-241226
# Here we expose the License Proxy status port to the host machine. The container port
# (right-hand side) must match the port that the License Proxy service is listening
# on (from its configuration file).
ports:
- "8089:8080"
<<: *env
# The path on the left of the colon ':' should point to files/directories on the host machine.
# The path on the right of the colon ':' is an in-container path. It must match the path
# specified in the `command` header below.
volumes:
- "/path/to/license-proxy.toml:/license-proxy.toml:ro,Z"
# Invoke the License Proxy service
command: -v serve /license-proxy.toml