From 0a85e6fd2d37da451994b8f873e6a84b0e483049 Mon Sep 17 00:00:00 2001 From: jack Date: Fri, 27 Mar 2026 18:55:13 +0700 Subject: [PATCH] fix: add plane-createbuckets to init MinIO uploads bucket on fresh deploy --- .../services/templates/docker-compose.yml.j2 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/roles/services/templates/docker-compose.yml.j2 b/roles/services/templates/docker-compose.yml.j2 index 1853101..1971ef9 100644 --- a/roles/services/templates/docker-compose.yml.j2 +++ b/roles/services/templates/docker-compose.yml.j2 @@ -355,6 +355,25 @@ services: timeout: 20s retries: 3 + plane-createbuckets: + image: minio/mc + container_name: plane-createbuckets + restart: "no" + depends_on: + plane-minio: + condition: service_healthy + entrypoint: > + /bin/sh -c " + mc alias set myminio http://plane-minio:9000 plane-minio $${PLANE_MINIO_PASSWORD} && + mc mb --ignore-existing myminio/uploads && + mc anonymous set download myminio/uploads; + exit 0; + " + environment: + - PLANE_MINIO_PASSWORD=${PLANE_MINIO_PASSWORD} + networks: + - plane-internal + # ── Forgejo Actions Runner ───────────────────────────────────────────────── # backend — для связи с Forgejo по внутренней сети (http://forgejo:3000) # runner-jobs — сеть с интернет-доступом для job-контейнеров