feat: 添加 Dockerfile、docker-compose 及 K8s kustomize 部署文件

This commit is contained in:
2026-06-15 16:49:35 +08:00
parent fd1bac551c
commit eeea55e9e4
18 changed files with 587 additions and 0 deletions
+45
View File
@@ -0,0 +1,45 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend
labels:
app: graphrag
component: frontend
spec:
replicas: 1
selector:
matchLabels:
app: graphrag
component: frontend
template:
metadata:
labels:
app: graphrag
component: frontend
spec:
containers:
- name: frontend
image: graphrag-frontend:latest
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
protocol: TCP
resources:
requests:
memory: "64Mi"
cpu: "100m"
limits:
memory: "256Mi"
cpu: "500m"
livenessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 5
periodSeconds: 30
readinessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 3
periodSeconds: 10