fix(ops): cap momo runtime startup load
Some checks failed
CD Pipeline / deploy (push) Has been cancelled

This commit is contained in:
OG T
2026-05-05 14:58:11 +08:00
parent ccd26415f3
commit ddcfd9603b
2 changed files with 20 additions and 3 deletions

View File

@@ -43,6 +43,8 @@ services:
image: ${MOMO_IMAGE:-registry.wooo.work/wooo/momo-pro-system}:${VERSION:-stable}
container_name: momo-pro-system
restart: unless-stopped
cpus: "2.0"
mem_limit: 2g
labels:
- "com.centurylinklabs.watchtower.enable=true"
ports:
@@ -188,6 +190,8 @@ services:
image: ${MOMO_IMAGE:-registry.wooo.work/wooo/momo-pro-system}:${VERSION:-stable}
container_name: momo-scheduler
restart: unless-stopped
cpus: "2.0"
mem_limit: 2g
labels:
- "com.centurylinklabs.watchtower.enable=true"
init: true # 使用 tini 作為 init 進程,自動回收僵屍進程
@@ -245,6 +249,8 @@ services:
image: ${MOMO_IMAGE:-registry.wooo.work/wooo/momo-pro-system}:${VERSION:-stable}
container_name: momo-telegram-bot
restart: unless-stopped
cpus: "0.5"
mem_limit: 512m
labels:
- "com.centurylinklabs.watchtower.enable=true"
init: true
@@ -665,6 +671,8 @@ services:
image: postgres:15-alpine
container_name: momo-postgres
restart: unless-stopped
cpus: "2.0"
mem_limit: 4g
# ADR-011: 生產主機使用獨立的 momo-db手動 docker run非 compose 管理)
# 此 service 僅供本地開發 / 一次性 migration 使用,預設不啟動。
# 啟用方式: docker compose --profile bundled-db up -d postgres