services: web: build: context: . dockerfile: Dockerfile container_name: tianxuan-company ports: - "8801:80" restart: unless-stopped depends_on: - backend healthcheck: test: ["CMD", "wget", "-q", "--spider", "http://localhost/"] interval: 30s timeout: 10s retries: 3 start_period: 10s networks: - tianxuan-network 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 networks: tianxuan-network: driver: bridge