forked from mtusi2026/mtusi2026lab2
22 lines
1.7 KiB
Plaintext
22 lines
1.7 KiB
Plaintext
date: 2026-11-05T19:16:58.984609+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
|
$ docker compose --profile bench config --format json (declared)
|
|
service cpus/mem ports secrets volumes networks ro
|
|
-------- ---------- ------------------------------- ------------------------------------ ---------- ---------------------- -----
|
|
api 1/512MiB - cache_url,cursor_secret,database_url - backend(internal) true
|
|
k6 2/512MiB - - - edge false
|
|
lb 1/128MiB 127.0.0.1:18083,127.0.0.1:23083 - - backend(internal),edge true
|
|
migrate 0.5/256MiB - database_url - backend(internal) false
|
|
postgres 2/1024MiB - postgres_password pgdata backend(internal) false
|
|
valkey 0.5/128MiB - valkey.conf valkeydata backend(internal) false
|
|
|
|
$ docker inspect (running containers: hostname = X-Instance-Id, applied limits)
|
|
service hostname cpus memory published
|
|
-------- ------------ ---- ------- ---------------------------------------------------
|
|
api 5bbf259ff136 1 512MiB
|
|
api 7cfd91ddf780 1 512MiB
|
|
lb 4f83577b3411 1 128MiB 127.0.0.1:18083->8080/tcp,127.0.0.1:23083->8404/tcp
|
|
postgres f225c6cd77bb 2 1024MiB
|
|
valkey 5e3ed0a9a35a 0.5 128MiB
|
|
|
|
PASS: limits, ports, secrets, volumes and networks match the policy
|