Skip to content

Commit c6824c2

Browse files
authored
Merge pull request #4 from juntao/patch-2
Refactor Docker config
2 parents dd36b58 + 7436e8c commit c6824c2

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

Dockerfile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,3 @@ COPY . .
2626

2727
# Create necessary directories
2828
RUN mkdir -p output
29-
30-
# Expose port for FastAPI
31-
EXPOSE 8000
32-
33-
# Add entry point for FastAPI
34-
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]

docker-compose.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,12 @@ services:
1313
- LLM_EMBED_SIZE=${LLM_EMBED_SIZE:-768}
1414
- QDRANT_HOST=qdrant
1515
- QDRANT_PORT=6333
16+
command: uvicorn app.main:app --host 0.0.0.0 --port 8000
1617
depends_on:
1718
- qdrant
1819

1920
mcp-server:
20-
build:
21-
context: .
22-
dockerfile: Dockerfile
21+
build: .
2322
environment:
2423
- MCP_TRANSPORT=sse
2524
- MCP_HOST=0.0.0.0
@@ -36,9 +35,7 @@ services:
3635
- qdrant
3736

3837
mcp-proxy:
39-
build:
40-
context: .
41-
dockerfile: Dockerfile
38+
build: .
4239
ports:
4340
- "3000:3000"
4441
command: mcp-proxy http://mcp-server:3001/sse --port 3000 --host 0.0.0.0 --allow-origin="*"
@@ -53,4 +50,4 @@ services:
5350
ports:
5451
- "6333:6333"
5552
volumes:
56-
- ./qdrant_data:/qdrant/storage
53+
- ./qdrant_data:/qdrant/storage

0 commit comments

Comments
 (0)