Files
mnote/infra/convex/docker-compose.yml
T

39 lines
1.1 KiB
YAML
Raw Normal View History

2026-04-15 20:01:12 +08:00
name: mnote-convex
2026-01-17 10:12:53 +08:00
services:
backend:
# 说明:官方自托管镜像。需要时可将 :latest 固定为特定版本。
2026-05-19 08:11:58 +08:00
# local-first 下该卷只承载控制面、cloud source、compat 和 sync replica
# 不作为本地默认页面正文、附件或 AI 会话全文真相。
image: ghcr.io/get-convex/convex-backend@sha256:2143ad479a997802e74ac52f5f1ce3d6e75309b1965e36069d1c939166e210eb
2026-01-17 10:12:53 +08:00
stop_grace_period: 10s
stop_signal: SIGINT
2026-05-13 22:43:16 +08:00
ulimits:
nofile:
soft: 65535
hard: 65535
2026-01-17 10:12:53 +08:00
ports:
2026-02-01 08:47:40 +08:00
- "3210:3210"
- "3211:3211"
2026-01-17 10:12:53 +08:00
volumes:
- convex_data_v1:/convex/data
2026-01-18 05:13:53 +08:00
env_file:
2026-02-01 08:47:40 +08:00
- ../../.env.all
2026-01-17 10:12:53 +08:00
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3210/version"]
interval: 5s
start_period: 10s
dashboard:
image: ghcr.io/get-convex/convex-dashboard@sha256:a1fa8df3d320d1691c74bb9df7bb2c536bdef91ff3f5307b717dba97eec793d1
2026-01-17 10:12:53 +08:00
stop_grace_period: 10s
stop_signal: SIGINT
ports:
2026-02-01 08:47:40 +08:00
- "6791:6791"
2026-01-17 10:12:53 +08:00
depends_on:
backend:
condition: service_healthy
volumes:
convex_data_v1: