-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (35 loc) · 918 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (35 loc) · 918 Bytes
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
services:
sentence-transformers-server:
build:
context: ./server
# if you are behind a corporate proxy uncomment below to pass these values at container build time
# args:
# - HTTP_PROXY
# - HTTPS_PROXY
# - NO_PROXY
container_name: sentence_transformers_server
environment:
- MODEL=${MODEL}
# if you are behind a corporate proxy uncomment below to pass these values during the container execution
# - HTTP_PROXY
# - HTTPS_PROXY
# - NO_PROXY
# - http_proxy
# - https_proxy
# - no_proxy
ports:
- ${STS_PORT:-8081}:8081
volumes:
- ./server:/code/server
- ./models:/code/server/models
command:
- uvicorn
- --workers
- "20"
- main:app
- --host
- "0.0.0.0"
- --port
- "8081"
# - --reload # take away in prod
restart: unless-stopped