中文汉化
Deploy to Staging / deploy (push) Has been cancelled
Conflict detector / main (push) Has been cancelled
Lint Backend / lint-backend (push) Has been cancelled
Playwright Tests / changes (push) Has been cancelled
Test Backend / test-backend (push) Has been cancelled
Test Docker Compose / test-docker-compose (push) Has been cancelled
Playwright Tests / test-playwright (1, 4) (push) Has been cancelled
Playwright Tests / test-playwright (2, 4) (push) Has been cancelled
Playwright Tests / test-playwright (3, 4) (push) Has been cancelled
Playwright Tests / test-playwright (4, 4) (push) Has been cancelled
Playwright Tests / merge-playwright-reports (push) Has been cancelled
Playwright Tests / alls-green-playwright (push) Has been cancelled
Issue Manager / issue-manager (push) Has been cancelled
Deploy to Staging / deploy (push) Has been cancelled
Conflict detector / main (push) Has been cancelled
Lint Backend / lint-backend (push) Has been cancelled
Playwright Tests / changes (push) Has been cancelled
Test Backend / test-backend (push) Has been cancelled
Test Docker Compose / test-docker-compose (push) Has been cancelled
Playwright Tests / test-playwright (1, 4) (push) Has been cancelled
Playwright Tests / test-playwright (2, 4) (push) Has been cancelled
Playwright Tests / test-playwright (3, 4) (push) Has been cancelled
Playwright Tests / test-playwright (4, 4) (push) Has been cancelled
Playwright Tests / merge-playwright-reports (push) Has been cancelled
Playwright Tests / alls-green-playwright (push) Has been cancelled
Issue Manager / issue-manager (push) Has been cancelled
This commit is contained in:
+22
-22
@@ -1,9 +1,9 @@
|
||||
services:
|
||||
|
||||
# Local services are available on their ports, but also available on:
|
||||
# http://api.localhost.tiangolo.com: backend
|
||||
# http://dashboard.localhost.tiangolo.com: frontend
|
||||
# etc. To enable it, update .env, set:
|
||||
# 本地服务可通过其端口访问,也可以通过以下地址访问:
|
||||
# http://api.localhost.tiangolo.com: 后端
|
||||
# http://dashboard.localhost.tiangolo.com: 前端
|
||||
# 等等。要启用此功能,请更新 .env,设置:
|
||||
# DOMAIN=localhost.tiangolo.com
|
||||
proxy:
|
||||
image: traefik:3.0
|
||||
@@ -12,34 +12,34 @@ services:
|
||||
ports:
|
||||
- "80:80"
|
||||
- "8090:8080"
|
||||
# Duplicate the command from docker-compose.yml to add --api.insecure=true
|
||||
# 从 docker-compose.yml 复制命令并添加 --api.insecure=true
|
||||
command:
|
||||
# Enable Docker in Traefik, so that it reads labels from Docker services
|
||||
# 在 Traefik 中启用 Docker,以便它能读取 Docker 服务的标签
|
||||
- --providers.docker
|
||||
# Add a constraint to only use services with the label for this stack
|
||||
# 添加约束,只使用具有此堆栈标签的服务
|
||||
- --providers.docker.constraints=Label(`traefik.constraint-label`, `traefik-public`)
|
||||
# Do not expose all Docker services, only the ones explicitly exposed
|
||||
# 不暴露所有 Docker 服务,只暴露明确指定的服务
|
||||
- --providers.docker.exposedbydefault=false
|
||||
# Create an entrypoint "http" listening on port 80
|
||||
# 创建一个监听 80 端口的入口点 "http"
|
||||
- --entrypoints.http.address=:80
|
||||
# Create an entrypoint "https" listening on port 443
|
||||
# 创建一个监听 443 端口的入口点 "https"
|
||||
- --entrypoints.https.address=:443
|
||||
# Enable the access log, with HTTP requests
|
||||
# 启用访问日志,记录 HTTP 请求
|
||||
- --accesslog
|
||||
# Enable the Traefik log, for configurations and errors
|
||||
# 启用 Traefik 日志,用于配置和错误
|
||||
- --log
|
||||
# Enable debug logging for local development
|
||||
# 为本地开发启用调试日志
|
||||
- --log.level=DEBUG
|
||||
# Enable the Dashboard and API
|
||||
# 启用仪表板和 API
|
||||
- --api
|
||||
# Enable the Dashboard and API in insecure mode for local development
|
||||
# 为本地开发以不安全模式启用仪表板和 API
|
||||
- --api.insecure=true
|
||||
labels:
|
||||
# Enable Traefik for this service, to make it available in the public network
|
||||
# 为此服务启用 Traefik,使其在公共网络中可用
|
||||
- traefik.enable=true
|
||||
- traefik.constraint-label=traefik-public
|
||||
# Dummy https-redirect middleware that doesn't really redirect, only to
|
||||
# allow running it locally
|
||||
# 虚拟的 https-redirect 中间件,实际上不进行重定向,
|
||||
# 仅用于允许在本地运行
|
||||
- traefik.http.middlewares.https-redirect.contenttype.autodetect=false
|
||||
networks:
|
||||
- traefik-public
|
||||
@@ -61,7 +61,7 @@ services:
|
||||
- "8000:8000"
|
||||
build:
|
||||
context: ./backend
|
||||
# command: sleep infinity # Infinite loop to keep container alive doing nothing
|
||||
# command: sleep infinity # 无限循环以保持容器存活但不执行任何操作
|
||||
command:
|
||||
- fastapi
|
||||
- run
|
||||
@@ -77,7 +77,7 @@ services:
|
||||
- .venv
|
||||
- path: ./backend/pyproject.toml
|
||||
action: rebuild
|
||||
# TODO: remove once coverage is done locally
|
||||
# TODO: 在本地完成覆盖率测试后移除
|
||||
volumes:
|
||||
- ./backend/htmlcov:/app/htmlcov
|
||||
environment:
|
||||
@@ -118,7 +118,7 @@ services:
|
||||
environment:
|
||||
- VITE_API_URL=http://backend:8000
|
||||
- MAILCATCHER_HOST=http://mailcatcher:1080
|
||||
# For the reports when run locally
|
||||
# 用于本地运行时的报告
|
||||
- PLAYWRIGHT_HTML_HOST=0.0.0.0
|
||||
- CI=${CI}
|
||||
volumes:
|
||||
@@ -129,5 +129,5 @@ services:
|
||||
|
||||
networks:
|
||||
traefik-public:
|
||||
# For local dev, don't expect an external Traefik network
|
||||
# 对于本地开发,不要期望有外部 Traefik 网络
|
||||
external: false
|
||||
|
||||
Reference in New Issue
Block a user