date: 2026-10-28T16:53:55Z  commit: e00eb6c
$ docker compose --env-file .env config --quiet && echo valid
valid
$ docker compose ps --format '{{.Service}} {{.Name}} {{.Status}} {{.Ports}}'
api mtusi2026lab3-api-1 Up 7 seconds (healthy) 
api mtusi2026lab3-api-2 Up 7 seconds (healthy) 
lb mtusi2026lab3-lb-1 Up 14 seconds (healthy) 127.0.0.1:18083->8080/tcp, 127.0.0.1:23083->8404/tcp
postgres mtusi2026lab3-postgres-1 Up 14 seconds (healthy) 
valkey mtusi2026lab3-valkey-1 Up 14 seconds (healthy) 
$ docker compose config | grep -c container_name
0
$ docker port <каждая реплика api>   # реплики не публикуют порт
a3536e394b3f: []
27de23496b0f: []
$ docker inspect: hostname = X-Instance-Id, сети, лимиты CPU (nano) и памяти
api 27de23496b0f /mtusi2026lab3-api-2 nets=mtusi2026lab3_backend, cpus=1000000000 mem=536870912 user=10001:10001 ro=true
api a3536e394b3f /mtusi2026lab3-api-1 nets=mtusi2026lab3_backend, cpus=1000000000 mem=536870912 user=10001:10001 ro=true
lb 0b152ec25c09 /mtusi2026lab3-lb-1 nets=mtusi2026lab3_backend,mtusi2026lab3_edge, cpus=1000000000 mem=134217728 user=haproxy ro=true
postgres 67fe9b43b70b /mtusi2026lab3-postgres-1 nets=mtusi2026lab3_backend, cpus=2000000000 mem=1073741824 user=70:70 ro=false
valkey e4c5a748222e /mtusi2026lab3-valkey-1 nets=mtusi2026lab3_backend, cpus=500000000 mem=134217728 user=999:1000 ro=false
$ curl LB stats: backend api, server status check
api1 UP L7OK 200
api2 UP L7OK 200
BACKEND UP  
$ for i in 1..6: curl -D - http://127.0.0.1:18083/health/live | X-Instance-Id
x-instance-id: a3536e394b3f
x-instance-id: 27de23496b0f
x-instance-id: a3536e394b3f
x-instance-id: 27de23496b0f
x-instance-id: a3536e394b3f
x-instance-id: 27de23496b0f
