feat: 添加 Dockerfile、docker-compose 及 K8s kustomize 部署文件
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
backend:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: backend/Dockerfile
|
||||
image: graphrag-backend:latest
|
||||
container_name: graphrag-backend
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- backend_data:/app/backend/data
|
||||
- mineru_output:/app/mineru_mvp/output
|
||||
env_file:
|
||||
- backend/.env
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8000/api/v1/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 15s
|
||||
networks:
|
||||
- graphrag-net
|
||||
|
||||
frontend:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: frontend/Dockerfile
|
||||
image: graphrag-frontend:latest
|
||||
container_name: graphrag-frontend
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "5173:80"
|
||||
depends_on:
|
||||
backend:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- graphrag-net
|
||||
|
||||
volumes:
|
||||
backend_data:
|
||||
mineru_output:
|
||||
|
||||
networks:
|
||||
graphrag-net:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user