49 lines
1.5 KiB
YAML
49 lines
1.5 KiB
YAML
services:
|
|
backend:
|
|
# 说明:官方自托管镜像。需要时可将 :latest 固定为特定版本。
|
|
image: ghcr.io/get-convex/convex-backend:latest
|
|
stop_grace_period: 10s
|
|
stop_signal: SIGINT
|
|
ports:
|
|
- "${PORT:-3210}:3210"
|
|
- "${SITE_PROXY_PORT:-3211}:3211"
|
|
volumes:
|
|
- convex_data_v1:/convex/data
|
|
environment:
|
|
- ACTIONS_USER_TIMEOUT_SECS
|
|
- CONVEX_CLOUD_ORIGIN=${CONVEX_CLOUD_ORIGIN:-http://127.0.0.1:${PORT:-3210}}
|
|
- CONVEX_RELEASE_VERSION_DEV
|
|
- CONVEX_SITE_ORIGIN=${CONVEX_SITE_ORIGIN:-http://127.0.0.1:${SITE_PROXY_PORT:-3211}}
|
|
- DATABASE_URL
|
|
- DISABLE_BEACON
|
|
- DOCUMENT_RETENTION_DELAY=${DOCUMENT_RETENTION_DELAY:-172800} # 降低默认保留到 2 天
|
|
- DO_NOT_REQUIRE_SSL
|
|
- HTTP_SERVER_TIMEOUT_SECONDS
|
|
- INSTANCE_NAME
|
|
- INSTANCE_SECRET
|
|
- MYSQL_URL
|
|
- POSTGRES_URL
|
|
- REDACT_LOGS_TO_CLIENT
|
|
- RUST_BACKTRACE
|
|
- RUST_LOG=${RUST_LOG:-info}
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:3210/version"]
|
|
interval: 5s
|
|
start_period: 10s
|
|
|
|
dashboard:
|
|
image: ghcr.io/get-convex/convex-dashboard:latest
|
|
stop_grace_period: 10s
|
|
stop_signal: SIGINT
|
|
ports:
|
|
- "${DASHBOARD_PORT:-6791}:6791"
|
|
environment:
|
|
- NEXT_PUBLIC_DEPLOYMENT_URL=${NEXT_PUBLIC_DEPLOYMENT_URL:-http://127.0.0.1:${PORT:-3210}}
|
|
- NEXT_PUBLIC_LOAD_MONACO_INTERNALLY
|
|
depends_on:
|
|
backend:
|
|
condition: service_healthy
|
|
|
|
volumes:
|
|
convex_data_v1:
|