Files
ballet-server/backend/compose.prod.yaml
T
yuxuanhui 36d6fe123f
Deploy backend / deploy (push) Successful in 29s
feat: 更新部署文档,添加 UAT 环境配置和日志管理设置
2026-09-30 11:31:36 +08:00

33 lines
943 B
YAML

name: ballet-island
services:
api:
image: ballet-island-api:${IMAGE_TAG:?Set IMAGE_TAG to the Git commit}
build:
context: .
restart: unless-stopped
labels:
observability.logs: "true"
observability.project: "ballet-island"
observability.service: "api"
observability.env: "production"
logging:
driver: json-file
options:
max-size: "20m"
max-file: "5"
environment:
HTTP_ADDR: :8080
DATABASE_URL: ${DATABASE_URL:?Set DATABASE_URL to the production PostgreSQL URL}
WECHAT_APP_ID: ${WECHAT_APP_ID:?Set WECHAT_APP_ID}
WECHAT_APP_SECRET: ${WECHAT_APP_SECRET:?Set WECHAT_APP_SECRET}
ports:
- "127.0.0.1:8113:8080"
healthcheck:
test: ["CMD", "wget", "-q", "-T", "3", "-O", "/dev/null", "http://127.0.0.1:8080/readyz"]
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
stop_grace_period: 15s