Update lab 3 implementation

This commit is contained in:
HellsTomato
2026-10-29 20:39:34 +03:00
parent 34f78adf82
commit 34932d3fbe
4 changed files with 48 additions and 11 deletions
+18
View File
@@ -13,6 +13,14 @@ services:
api-2:
condition: service_healthy
restart: unless-stopped
deploy:
resources:
limits:
cpus: '0.5'
memory: 128M
reservations:
cpus: '0.1'
memory: 64M
# Первая реплика API.
api-1:
@@ -37,6 +45,7 @@ services:
retries: 3
start_period: 30s
restart: unless-stopped
stop_grace_period: 30s
deploy:
resources:
limits:
@@ -69,6 +78,7 @@ services:
retries: 3
start_period: 30s
restart: unless-stopped
stop_grace_period: 30s
deploy:
resources:
limits:
@@ -93,6 +103,14 @@ services:
redis:
condition: service_healthy
restart: "no"
deploy:
resources:
limits:
cpus: '0.5'
memory: 256M
reservations:
cpus: '0.1'
memory: 128M
# PostgreSQL хранит постоянные данные.
postgres: