2026-03-24 01:18:52 +08:00
|
|
|
services:
|
|
|
|
|
web:
|
|
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
|
container_name: tianxuan-company
|
|
|
|
|
ports:
|
|
|
|
|
- "8801:80"
|
|
|
|
|
restart: unless-stopped
|
2026-03-28 01:37:52 +08:00
|
|
|
depends_on:
|
|
|
|
|
- backend
|
2026-03-24 01:18:52 +08:00
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "wget", "-q", "--spider", "http://localhost/"]
|
|
|
|
|
interval: 30s
|
|
|
|
|
timeout: 10s
|
|
|
|
|
retries: 3
|
|
|
|
|
start_period: 10s
|
|
|
|
|
networks:
|
|
|
|
|
- tianxuan-network
|
|
|
|
|
|
2026-03-28 01:37:52 +08:00
|
|
|
backend:
|
|
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: backend/Dockerfile
|
|
|
|
|
container_name: tianxuan-company-backend
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
env_file:
|
|
|
|
|
- .env
|
|
|
|
|
environment:
|
|
|
|
|
PORT: 3000
|
|
|
|
|
DEEPSEEK_API_KEY: ${DEEPSEEK_API_KEY}
|
|
|
|
|
DEEPSEEK_BASE_URL: ${DEEPSEEK_BASE_URL:-https://api.deepseek.com}
|
|
|
|
|
DEEPSEEK_MODEL: ${DEEPSEEK_MODEL:-deepseek-chat}
|
|
|
|
|
REQUEST_TIMEOUT_MS: ${REQUEST_TIMEOUT_MS:-20000}
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "node", "-e", "fetch('http://localhost:3000/api/health').then((res) => { if (!res.ok) process.exit(1); }).catch(() => process.exit(1))"]
|
|
|
|
|
interval: 30s
|
|
|
|
|
timeout: 10s
|
|
|
|
|
retries: 3
|
|
|
|
|
start_period: 10s
|
|
|
|
|
networks:
|
|
|
|
|
- tianxuan-network
|
|
|
|
|
|
2026-03-24 01:18:52 +08:00
|
|
|
networks:
|
|
|
|
|
tianxuan-network:
|
|
|
|
|
driver: bridge
|