-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
32 lines (32 loc) · 1008 Bytes
/
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
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=http://X.X.X.X:Y
# - HTTPS_PROXY=http://X.X.X.X:Y
# - http_proxy=http://X.X.X.X:Y
# - https_proxy=http://X.X.X.X:Y
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=http://X.X.X.X:Y
# - HTTPS_PROXY=http://X.X.X.X:Y
# - http_proxy=http://X.X.X.X:Y
# - https_proxy=http://X.X.X.X:Y
ports:
- ${STS_PORT:-8081}:8081
volumes:
- ./server:/code/server
- ./models:/code/server/models
command:
- uvicorn
- main:app
- --host
- "0.0.0.0"
- --port
- "8081"
- --reload # take away in prod
restart: unless-stopped