39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
# BuildFlow 门户网站容器编排
|
||
# 本地:docker compose up -d --build → http://localhost:5173
|
||
# 生产:由 Jenkins 生成 network_mode: host 的 compose(见 Jenkinsfile),http://192.168.1.154:5173
|
||
|
||
services:
|
||
buildflow-web:
|
||
build:
|
||
context: .
|
||
dockerfile: Dockerfile
|
||
image: buildflow-web:latest
|
||
container_name: buildflow-web
|
||
restart: unless-stopped
|
||
ports:
|
||
- "5173:5173" # 本地 bridge;生产由 Jenkins 改为 network_mode: host
|
||
healthcheck:
|
||
test: ["CMD", "wget", "-q", "--spider", "http://127.0.0.1:5173/"]
|
||
interval: 30s
|
||
timeout: 3s
|
||
retries: 3
|
||
start_period: 5s
|
||
networks:
|
||
- buildflow-net
|
||
|
||
# KKFileView 在线文档预览服务(Office/PDF/图片等 30+ 格式)
|
||
# 后端 file 模块的 /api/files/office-preview 端点生成预览地址指向此服务。
|
||
# 本地预览:http://localhost:8012
|
||
kkfileview:
|
||
image: keking/kkfileview:4.4.0
|
||
container_name: buildflow-kkfileview
|
||
restart: unless-stopped
|
||
ports:
|
||
- "8012:8012"
|
||
networks:
|
||
- buildflow-net
|
||
|
||
networks:
|
||
buildflow-net:
|
||
driver: bridge
|