# 2026-11-10 14:13:53 UTC | S3 bootstrap: лог первого запуска s3-init | exit 0 | 0.3s
$ docker compose --env-file .env logs --no-color s3-init
s3-init-1  | {
s3-init-1  |   "endpoint_host": "s3",
s3-init-1  |   "bucket": "messenger-attachments",
s3-init-1  |   "checks": [
s3-init-1  |     {
s3-init-1  |       "check": "api credentials: put/get own bucket",
s3-init-1  |       "ok": true,
s3-init-1  |       "detail": ""
s3-init-1  |     },
s3-init-1  |     {
s3-init-1  |       "check": "anonymous GET object is denied",
s3-init-1  |       "ok": true,
s3-init-1  |       "detail": "HTTP 403"
s3-init-1  |     },
s3-init-1  |     {
s3-init-1  |       "check": "anonymous list bucket is denied",
s3-init-1  |       "ok": true,
s3-init-1  |       "detail": "HTTP 403"
s3-init-1  |     },
s3-init-1  |     {
s3-init-1  |       "check": "anonymous list buckets is denied",
s3-init-1  |       "ok": true,
s3-init-1  |       "detail": "HTTP 403"
s3-init-1  |     },
s3-init-1  |     {
s3-init-1  |       "check": "api credentials cannot create buckets",
s3-init-1  |       "ok": true,
s3-init-1  |       "detail": "AccessDenied"
s3-init-1  |     },
s3-init-1  |     {
s3-init-1  |       "check": "api credentials cannot delete the bucket",
s3-init-1  |       "ok": true,
s3-init-1  |       "detail": "AccessDenied"
s3-init-1  |     },
s3-init-1  |     {
s3-init-1  |       "check": "SeaweedFS admin/UI ports are not reachable on the shared network",
s3-init-1  |       "ok": true,
s3-init-1  |       "detail": "checked [9333, 8888, 8080, 19333, 18888]"
s3-init-1  |     }
s3-init-1  |   ],
s3-init-1  |   "bucket_action": "created",
s3-init-1  |   "ok": true
s3-init-1  | }
s3-init-1  | {
s3-init-1  |   "endpoint_host": "s3",
s3-init-1  |   "bucket": "messenger-attachments",
s3-init-1  |   "checks": [
s3-init-1  |     {
s3-init-1  |       "check": "api credentials: put/get own bucket",
s3-init-1  |       "ok": true,
s3-init-1  |       "detail": ""
s3-init-1  |     },
s3-init-1  |     {
s3-init-1  |       "check": "anonymous GET object is denied",
s3-init-1  |       "ok": true,
s3-init-1  |       "detail": "HTTP 403"
s3-init-1  |     },
s3-init-1  |     {
s3-init-1  |       "check": "anonymous list bucket is denied",
s3-init-1  |       "ok": true,
s3-init-1  |       "detail": "HTTP 403"
s3-init-1  |     },
s3-init-1  |     {
s3-init-1  |       "check": "anonymous list buckets is denied",
s3-init-1  |       "ok": true,
s3-init-1  |       "detail": "HTTP 403"
s3-init-1  |     },
s3-init-1  |     {
s3-init-1  |       "check": "api credentials cannot create buckets",
s3-init-1  |       "ok": true,
s3-init-1  |       "detail": "AccessDenied"
s3-init-1  |     },
s3-init-1  |     {
s3-init-1  |       "check": "api credentials cannot delete the bucket",
s3-init-1  |       "ok": true,
s3-init-1  |       "detail": "AccessDenied"
s3-init-1  |     },
s3-init-1  |     {
s3-init-1  |       "check": "SeaweedFS admin/UI ports are not reachable on the shared network",
s3-init-1  |       "ok": true,
s3-init-1  |       "detail": "checked [9333, 8888, 8080, 19333, 18888]"
s3-init-1  |     }
s3-init-1  |   ],
s3-init-1  |   "bucket_action": "already exists (idempotent no-op)",
s3-init-1  |   "ok": true
s3-init-1  | }
s3-init-1  | {
s3-init-1  |   "endpoint_host": "s3",
s3-init-1  |   "bucket": "messenger-attachments",
s3-init-1  |   "checks": [
s3-init-1  |     {
s3-init-1  |       "check": "api credentials: put/get own bucket",
s3-init-1  |       "ok": true,
s3-init-1  |       "detail": ""
s3-init-1  |     },
s3-init-1  |     {
s3-init-1  |       "check": "anonymous GET object is denied",
s3-init-1  |       "ok": true,
s3-init-1  |       "detail": "HTTP 403"
s3-init-1  |     },
s3-init-1  |     {
s3-init-1  |       "check": "anonymous list bucket is denied",
s3-init-1  |       "ok": true,
s3-init-1  |       "detail": "HTTP 403"
s3-init-1  |     },
s3-init-1  |     {
s3-init-1  |       "check": "anonymous list buckets is denied",
s3-init-1  |       "ok": true,
s3-init-1  |       "detail": "HTTP 403"
s3-init-1  |     },
s3-init-1  |     {
s3-init-1  |       "check": "api credentials cannot create buckets",
s3-init-1  |       "ok": true,
s3-init-1  |       "detail": "AccessDenied"
s3-init-1  |     },
s3-init-1  |     {
s3-init-1  |       "check": "api credentials cannot delete the bucket",
s3-init-1  |       "ok": true,
s3-init-1  |       "detail": "AccessDenied"
s3-init-1  |     },
s3-init-1  |     {
s3-init-1  |       "check": "SeaweedFS admin/UI ports are not reachable on the shared network",
s3-init-1  |       "ok": true,
s3-init-1  |       "detail": "checked [9333, 8888, 8080, 19333, 18888]"
s3-init-1  |     }
s3-init-1  |   ],
s3-init-1  |   "bucket_action": "already exists (idempotent no-op)",
s3-init-1  |   "ok": true
s3-init-1  | }
s3-init-1  | {
s3-init-1  |   "endpoint_host": "s3",
s3-init-1  |   "bucket": "messenger-attachments",
s3-init-1  |   "checks": [
s3-init-1  |     {
s3-init-1  |       "check": "api credentials: put/get own bucket",
s3-init-1  |       "ok": true,
s3-init-1  |       "detail": ""
s3-init-1  |     },
s3-init-1  |     {
s3-init-1  |       "check": "anonymous GET object is denied",
s3-init-1  |       "ok": true,
s3-init-1  |       "detail": "HTTP 403"
s3-init-1  |     },
s3-init-1  |     {
s3-init-1  |       "check": "anonymous list bucket is denied",
s3-init-1  |       "ok": true,
s3-init-1  |       "detail": "HTTP 403"
s3-init-1  |     },
s3-init-1  |     {
s3-init-1  |       "check": "anonymous list buckets is denied",
s3-init-1  |       "ok": true,
s3-init-1  |       "detail": "HTTP 403"
s3-init-1  |     },
s3-init-1  |     {
s3-init-1  |       "check": "api credentials cannot create buckets",
s3-init-1  |       "ok": true,
s3-init-1  |       "detail": "AccessDenied"
s3-init-1  |     },
s3-init-1  |     {
s3-init-1  |       "check": "api credentials cannot delete the bucket",
s3-init-1  |       "ok": true,
s3-init-1  |       "detail": "AccessDenied"
s3-init-1  |     },
s3-init-1  |     {
s3-init-1  |       "check": "SeaweedFS admin/UI ports are not reachable on the shared network",
s3-init-1  |       "ok": true,
s3-init-1  |       "detail": "checked [9333, 8888, 8080, 19333, 18888]"
s3-init-1  |     }
s3-init-1  |   ],
s3-init-1  |   "bucket_action": "already exists (idempotent no-op)",
s3-init-1  |   "ok": true
s3-init-1  | }
# 2026-11-10 14:14:03 UTC | S3 bootstrap: повторный запуск (идемпотентность) | exit 0 | 9.6s
$ docker compose --env-file .env run --rm -T s3-init
 Container messenger-lab5-s3-1 Running 
 Container messenger-lab5-s3-1 Waiting 
 Container messenger-lab5-s3-1 Healthy 
 Container messenger-lab5-s3-init-run-ac08328e286f Creating 
 Container messenger-lab5-s3-init-run-ac08328e286f Created 
{
  "endpoint_host": "s3",
  "bucket": "messenger-attachments",
  "checks": [
    {
      "check": "api credentials: put/get own bucket",
      "ok": true,
      "detail": ""
    },
    {
      "check": "anonymous GET object is denied",
      "ok": true,
      "detail": "HTTP 403"
    },
    {
      "check": "anonymous list bucket is denied",
      "ok": true,
      "detail": "HTTP 403"
    },
    {
      "check": "anonymous list buckets is denied",
      "ok": true,
      "detail": "HTTP 403"
    },
    {
      "check": "api credentials cannot create buckets",
      "ok": true,
      "detail": "AccessDenied"
    },
    {
      "check": "api credentials cannot delete the bucket",
      "ok": true,
      "detail": "AccessDenied"
    },
    {
      "check": "SeaweedFS admin/UI ports are not reachable on the shared network",
      "ok": true,
      "detail": "checked [9333, 8888, 8080, 19333, 18888]"
    }
  ],
  "bucket_action": "already exists (idempotent no-op)",
  "ok": true
}

