fix: add plane-createbuckets to init MinIO uploads bucket on fresh deploy
This commit is contained in:
parent
8feff04136
commit
0a85e6fd2d
1 changed files with 19 additions and 0 deletions
|
|
@ -355,6 +355,25 @@ services:
|
||||||
timeout: 20s
|
timeout: 20s
|
||||||
retries: 3
|
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 ─────────────────────────────────────────────────
|
# ── Forgejo Actions Runner ─────────────────────────────────────────────────
|
||||||
# backend — для связи с Forgejo по внутренней сети (http://forgejo:3000)
|
# backend — для связи с Forgejo по внутренней сети (http://forgejo:3000)
|
||||||
# runner-jobs — сеть с интернет-доступом для job-контейнеров
|
# runner-jobs — сеть с интернет-доступом для job-контейнеров
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue