# stack: stand layout: replicas, ports, limits, networks, secrets, S3
# date: 2026-10-22 14:19:19, commit: c942c61 + uncommitted changes
# command: python.exe student-tests/check_stack.py
# exit code: 0, 2.9 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        343119df2488   Up 17 seconds (healthy)         8080/tcp
api        d590adc21943   Up 18 seconds (healthy)         8080/tcp
janitor    d50ac08018c1   Up About a minute               
lb         0d5b262b09b3   Up 15 minutes (healthy)         127.0.0.1:8080->8080/tcp, 127.0.0.1:8404->8404/tcp
migrate    6c3123ccf237   Exited (0) About a minute ago   
postgres   84794c3ac2c5   Up 16 minutes (healthy)         
redis      3130fd5532b0   Up 16 minutes (healthy)         
s3         122ad603e3be   Up 16 minutes (healthy)         
s3-init    47c2d7d47ed2   Exited (0) About a minute ago

container                    image                    cpus  memory   host ports              networks
messenger-lab4-api-1         messenger-lab4-api       1.00   512 MiB  -                       data,edge
messenger-lab4-api-2         messenger-lab4-api       1.00   512 MiB  -                       data,edge
messenger-lab4-janitor-1     messenger-lab4-janitor   0.25   192 MiB  -                       data
messenger-lab4-lb-1          haproxy:3.2.25-alpine    0.50   128 MiB  127.0.0.1:8080,127.0.0.1:8404 edge
messenger-lab4-postgres-1    postgres:17.11-alpine    1.00   512 MiB  -                       data
messenger-lab4-redis-1       redis:7.4.11-alpine      0.50   128 MiB  -                       data
messenger-lab4-s3-1          chrislusf/seaweedfs:3.80 1.00   512 MiB  -                       data

secrets of api: ['cache_url', 'database_url', 's3_access_key_id', 's3_secret_access_key']
secrets of janitor: ['database_url', 's3_access_key_id', 's3_secret_access_key']
secrets of lb: -
secrets of migrate: ['database_url']
secrets of postgres: ['postgres_password']
secrets of redis: ['redis_auth']
secrets of s3: ['s3_config']
secrets of s3-init: ['s3_access_key_id', 's3_root_password', 's3_root_user', 's3_secret_access_key']

through http://127.0.0.1:8080 one session is served by 2 replicas: ['343119df2488', 'd590adc21943']
/health/ready -> 200 from d590adc21943
PASS: 2 api replicas behind one entry point, no direct API ports, limits on every container, postgres/redis/s3/janitor only in the internal data network, S3 admin keys only in s3 and s3-init
