forked from mtusi2026/mtusi2026lab5
feat:level4
This commit is contained in:
@@ -91,6 +91,29 @@ services:
|
||||
limits:
|
||||
cpus: "${API_CPU_PER_REPLICA:-0.5}"
|
||||
memory: "${API_MEM_PER_REPLICA:-128M}"
|
||||
|
||||
outbox:
|
||||
<<: *api
|
||||
entrypoint: ["/app/outbox"]
|
||||
depends_on:
|
||||
postgres: { condition: service_healthy }
|
||||
redis: { condition: service_healthy }
|
||||
deploy:
|
||||
replicas: 1
|
||||
resources:
|
||||
limits: { cpus: "0.2", memory: "64M" }
|
||||
|
||||
worker:
|
||||
<<: *api
|
||||
entrypoint: ["/app/worker"]
|
||||
depends_on:
|
||||
postgres: { condition: service_healthy }
|
||||
redis: { condition: service_healthy }
|
||||
s3: { condition: service_healthy }
|
||||
deploy:
|
||||
replicas: 2
|
||||
resources:
|
||||
limits: { cpus: "0.5", memory: "256M" }
|
||||
|
||||
migrate:
|
||||
<<: *api
|
||||
|
||||
Reference in New Issue
Block a user