# persistence
# date: 2026-11-12T15:08:19  commit: 276dbda

$ docker compose --env-file .env ps
NAME                    IMAGE                                      COMMAND                  SERVICE    CREATED         STATUS                   PORTS
mtusi-lab5-api-1        mtusi-messenger:lab5                       "python -m app"          api        5 minutes ago   Up 4 minutes (healthy)   8080/tcp
mtusi-lab5-api-2        mtusi-messenger:lab5                       "python -m app"          api        5 minutes ago   Up 4 minutes (healthy)   8080/tcp
mtusi-lab5-broker-1     redis:7.4.1-alpine                         "docker-entrypoint.s…"   broker     15 hours ago    Up 5 minutes (healthy)   6379/tcp
mtusi-lab5-lb-1         haproxy:3.0.5-alpine                       "docker-entrypoint.s…"   lb         15 hours ago    Up 5 minutes (healthy)   127.0.0.1:8080-8082->8080-8082/tcp
mtusi-lab5-postgres-1   postgres:16.4-alpine                       "docker-entrypoint.s…"   postgres   15 hours ago    Up 5 minutes (healthy)   5432/tcp
mtusi-lab5-redis-1      redis:7.4.1-alpine                         "docker-entrypoint.s…"   redis      15 hours ago    Up 5 minutes (healthy)   6379/tcp
mtusi-lab5-s3-1         pgsty/minio:RELEASE.2026-08-04T00-00-00Z   "/usr/bin/docker-ent…"   s3         15 hours ago    Up 3 minutes (healthy)   9000/tcp
mtusi-lab5-worker-1     mtusi-messenger:lab5                       "python -m app.worker"   worker     4 minutes ago   Up 4 minutes (healthy)   8080/tcp
[exit 0]

$ C:\Users\79152\AppData\Local\Python\pythoncore-3.14-64\python.exe tests/resilience.py --mode persistence --action-script C:\Users\79152\Desktop\mtusi2026lab5\scripts\restart.cmd --base-url http://localhost:8080
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
[exit 0]

$ docker compose --env-file .env ps
NAME                    IMAGE                                      COMMAND                  SERVICE    CREATED         STATUS                            PORTS
mtusi-lab5-api-1        mtusi-messenger:lab5                       "python -m app"          api        5 minutes ago   Up 5 seconds (health: starting)   8080/tcp
mtusi-lab5-api-2        mtusi-messenger:lab5                       "python -m app"          api        5 minutes ago   Up 5 seconds (health: starting)   8080/tcp
mtusi-lab5-broker-1     redis:7.4.1-alpine                         "docker-entrypoint.s…"   broker     15 hours ago    Up 6 seconds (healthy)            6379/tcp
mtusi-lab5-lb-1         haproxy:3.0.5-alpine                       "docker-entrypoint.s…"   lb         15 hours ago    Up 4 seconds (health: starting)   127.0.0.1:8080-8082->8080-8082/tcp
mtusi-lab5-postgres-1   postgres:16.4-alpine                       "docker-entrypoint.s…"   postgres   15 hours ago    Up 6 seconds (health: starting)   5432/tcp
mtusi-lab5-redis-1      redis:7.4.1-alpine                         "docker-entrypoint.s…"   redis      15 hours ago    Up 6 seconds (health: starting)   6379/tcp
mtusi-lab5-s3-1         pgsty/minio:RELEASE.2026-08-04T00-00-00Z   "/usr/bin/docker-ent…"   s3         15 hours ago    Up 8 seconds (healthy)            9000/tcp
mtusi-lab5-worker-1     mtusi-messenger:lab5                       "python -m app.worker"   worker     5 minutes ago   Up 5 seconds (health: starting)   8080/tcp
[exit 0]
