fix(ops): cap momo runtime startup load
Some checks failed
CD Pipeline / deploy (push) Has been cancelled
Some checks failed
CD Pipeline / deploy (push) Has been cancelled
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user