forked from mtusi2026/mtusi2026lab4
41 lines
2.5 KiB
Plaintext
41 lines
2.5 KiB
Plaintext
# stack: stand layout: replicas, ports, limits, networks, secrets, S3
|
|
# date: 2026-10-21 21:03:00, commit: 2dbed80
|
|
# command: python.exe student-tests/check_stack.py
|
|
# exit code: 0, 3.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 11a93acecaca Up 20 seconds (healthy) 8080/tcp
|
|
api 6128eb268c44 Up 20 seconds (healthy) 8080/tcp
|
|
janitor baefc0e97dff Up 20 seconds
|
|
lb 03697e5fe34c Up 18 seconds (healthy) 127.0.0.1:8080->8080/tcp, 127.0.0.1:8404->8404/tcp
|
|
migrate aca090330db4 Exited (0) 22 seconds ago
|
|
postgres f7a6a1ce25a7 Up 2 minutes (healthy)
|
|
redis b4523b39a0fe Up 2 minutes (healthy)
|
|
s3 e7cbe6ddfa4a Up 2 minutes (healthy)
|
|
s3-init 60719e674e18 Exited (0) 21 seconds 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: ['11a93acecaca', '6128eb268c44']
|
|
/health/ready -> 200 from 11a93acecaca
|
|
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
|