Skip to content

Commit 90ec2b5

Browse files
committed
Allow the use of env vars to configure API
Signed-off-by: Michael Yuan <[email protected]>
1 parent 19546f7 commit 90ec2b5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docker-compose.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ services:
44
ports:
55
- "8000:8000"
66
environment:
7-
- LLM_API_BASE=http://host.docker.internal:8080/v1
8-
- LLM_MODEL=Qwen2.5-Coder-3B-Instruct-Q5_K_M
9-
- LLM_EMBED_MODEL=local-embed
10-
- LLM_EMBED_SIZE=768
11-
- LLM_API_KEY=
12-
- SKIP_VECTOR_SEARCH=true
7+
- LLM_API_BASE=${LLM_API_BASE:-http://host.docker.internal:8080/v1}
8+
- LLM_MODEL=${LLM_MODEL:-Qwen2.5-Coder-3B-Instruct-Q5_K_M}
9+
- LLM_EMBED_MODEL=${LLM_EMBED_MODEL:-nomic-embed}
10+
- LLM_EMBED_SIZE=${LLM_EMBED_SIZE:-768}
11+
- LLM_API_KEY=${LLM_API_KEY:-ABCD1234}
12+
- SKIP_VECTOR_SEARCH=${SKIP_VECTOR_SEARCH:-true}
1313
- QDRANT_HOST=qdrant
1414
- QDRANT_PORT=6333
1515
command: uvicorn app.main:app --host 0.0.0.0 --port 8000

0 commit comments

Comments
 (0)