# stack: stand layout: replicas, ports, limits, networks, secrets
# date: 2026-10-14 20:24:11, commit: 0ab3a34 + uncommitted changes
# command: python.exe student-tests/check_stack.py
# exit code: 0, 2.0 s

host: Windows 10, AMD64 Family 26 Model 68 Stepping 0, AuthenticAMD; client Python 3.11.1
Docker 28.1.1, Docker Compose version v2.35.1-desktop.1; Docker VM: 16 CPU, 15.2 GiB RAM, Docker Desktop

SERVICE    CONTAINER ID   STATUS                      PORTS
api        58542a53644c   Up 56 seconds (healthy)     8080/tcp
api        9737b915ff2f   Up 56 seconds (healthy)     8080/tcp
lb         143799027af8   Up 54 seconds (healthy)     127.0.0.1:8080->8080/tcp, 127.0.0.1:8404->8404/tcp
migrate    edb8550a4469   Exited (0) 19 seconds ago   
postgres   94f24029f4b4   Up 56 seconds (healthy)     
redis      b78c2ab71807   Up 56 seconds (healthy)

container                    image                    cpus  memory   host ports              networks
messenger-lab3-api-3         messenger-lab3-api       1.00   512 MiB  -                       data,edge
messenger-lab3-api-4         messenger-lab3-api       1.00   512 MiB  -                       data,edge
messenger-lab3-lb-1          haproxy:3.2.25-alpine    0.50   128 MiB  127.0.0.1:8080,127.0.0.1:8404 edge
messenger-lab3-postgres-1    postgres:17.11-alpine    1.00   512 MiB  -                       data
messenger-lab3-redis-1       redis:7.4.11-alpine      0.50   128 MiB  -                       data

secrets of api: ['cache_url', 'database_url']
secrets of lb: -
secrets of migrate: ['database_url']
secrets of postgres: ['postgres_password']
secrets of redis: ['redis_auth']

through http://127.0.0.1:8080 one session is served by 2 replicas: ['58542a53644c', '9737b915ff2f']
/health/ready -> 200 from 58542a53644c
PASS: 2 api replicas behind one entry point, no direct API ports, limits on every container, internal data network, secrets only where needed
