build-flow.portal/docker-compose.yml

27 lines
745 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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
networks:
buildflow-net:
driver: bridge