forked from mtusi2026/mtusi2026lab3
Исправить readiness LB и ресурсные лимиты
This commit is contained in:
@@ -37,6 +37,8 @@ services:
|
||||
timeout: 2s
|
||||
retries: 30
|
||||
restart: unless-stopped
|
||||
cpus: 1.0
|
||||
mem_limit: 768m
|
||||
networks: [backend]
|
||||
|
||||
redis:
|
||||
@@ -50,6 +52,8 @@ services:
|
||||
timeout: 2s
|
||||
retries: 30
|
||||
restart: unless-stopped
|
||||
cpus: 0.25
|
||||
mem_limit: 256m
|
||||
networks: [backend]
|
||||
|
||||
# One-shot Flyway runner. It is invoked explicitly before API replicas.
|
||||
@@ -66,6 +70,8 @@ services:
|
||||
redis:
|
||||
condition: service_healthy
|
||||
restart: "no"
|
||||
cpus: 0.75
|
||||
mem_limit: 768m
|
||||
networks: [backend]
|
||||
|
||||
api:
|
||||
|
||||
Reference in New Issue
Block a user