add code for level 4

This commit is contained in:
Матвей
2026-10-14 15:25:51 +03:00
parent 6e7b8007ac
commit 516bb095ac
11 changed files with 175 additions and 13 deletions
+20
View File
@@ -24,6 +24,11 @@ x-api: &api
timeout: 3s
retries: 12
start_period: 10s
deploy:
resources:
limits:
cpus: "0.50"
memory: 256M
services:
postgres:
@@ -42,6 +47,11 @@ services:
timeout: 3s
retries: 12
start_period: 5s
deploy:
resources:
limits:
cpus: "0.75"
memory: 512M
migrate:
build:
@@ -57,6 +67,11 @@ services:
postgres:
condition: service_healthy
restart: "no"
deploy:
resources:
limits:
cpus: "0.25"
memory: 128M
api-a:
<<: *api
@@ -81,6 +96,11 @@ services:
timeout: 3s
retries: 12
start_period: 5s
deploy:
resources:
limits:
cpus: "0.25"
memory: 128M
secrets:
postgres_password: