diff --git a/minio/CHANGELOG.md b/minio/CHANGELOG.md index 958a037..e9e4c29 100644 --- a/minio/CHANGELOG.md +++ b/minio/CHANGELOG.md @@ -1,3 +1,5 @@ -## 1.0.x +## 1.1.0 +- First stable release +## 1.0.0 - Initial release \ No newline at end of file diff --git a/minio/Dockerfile b/minio/Dockerfile index ac33023..7f1c29f 100644 --- a/minio/Dockerfile +++ b/minio/Dockerfile @@ -4,7 +4,7 @@ LABEL io.hass.name="MinIO" LABEL io.hass.description="S3-compatible object storage for HA" LABEL io.hass.arch="amd64|aarch64" LABEL io.hass.type="addon" -LABEL io.hass.version="1.0.64" +LABEL io.hass.version="1.1.0" # Install curl, jq and ca-certificates RUN apk add --no-cache bash curl jq ca-certificates diff --git a/minio/README.md b/minio/README.md index 4d8c4fa..4bae9da 100644 --- a/minio/README.md +++ b/minio/README.md @@ -15,22 +15,20 @@ It is designed to be **production-ready**, secure, lightweight, and accessible d ```yaml access_key: admin secret_key: CHANGEME-strong-password -region: us-east-1 -bucket: backup ``` +## ๐Ÿš€ Installation + +1. Go to Home Assistant โ†’ **Supervisor โ†’ Add-on Store** +2. Add this repository (Settings โ†’ Repositories โ†’ `https://github.com/martemme/HomeAssistantAddons`) +3. Install the add-on, configure the credentials and start it + ## ๐ŸŒ Access Once installed, access MinIO via the sidebar or at: `http://:9000` (if Ingress is not available) -## ๐Ÿš€ Installation - -1. Go to Home Assistant โ†’ **Supervisor โ†’ Add-on Store** -2. Add your custom Git repository (Settings โ†’ Repositories โ†’ `https://github.com//minio-addon`) -3. Install the add-on, start it, and access MinIO via Ingress - ## ๐Ÿงพ Requirements - Home Assistant OS or Supervised @@ -43,21 +41,14 @@ Once installed, access MinIO via the sidebar or at: minio/ โ”œโ”€โ”€ config.json # Add-on definition โ”œโ”€โ”€ Dockerfile # MinIO container -โ”œโ”€โ”€ run.sh # Entry point with TLS support and auto-creation of buckets +โ”œโ”€โ”€ run.sh # Startup script โ”œโ”€โ”€ README.md โ””โ”€โ”€ ... ``` ## ๐Ÿง  Notes -The bucket specified in `bucket:` is automatically created if it does not exist. - -If you use Longhorn, you can point backups to: - -```bash -http://:9000/longhorn-backup -``` - The credentials are passed as environment variables during bootstrap. +The container is based on `alpine:3.18` image ## ๐Ÿ›ก Security > โš ๏ธ Always use strong passwords. diff --git a/minio/config.json b/minio/config.json index 564d329..28ed773 100644 --- a/minio/config.json +++ b/minio/config.json @@ -1,6 +1,6 @@ { "name": "MinIO S3 Server", - "version": "1.0.64", + "version": "1.1.0", "slug": "minio", "description": "MinIO Server S3-compatible object storage server", "arch": [ @@ -14,9 +14,7 @@ "host_network": true, "panel_icon": "mdi:database", "panel_title": "MinIO", - "ingress": true, - "ingress_port": 9001, - "ingress_stream": false, + "ingress": false, "ports": { "9000/tcp": 9000, "9001/tcp": 9001 @@ -27,15 +25,11 @@ }, "options": { "access_key": "admin", - "secret_key": "CHANGEME-strong-password", - "region": "us-east-1", - "bucket": "backup" + "secret_key": "CHANGEME-strong-password" }, "schema": { "access_key": "str", - "secret_key": "str", - "region": "str", - "bucket": "str" + "secret_key": "str" }, "build_from": { "amd64": "alpine:3.18", diff --git a/minio/run.sh b/minio/run.sh index a680f2f..e13ec75 100644 --- a/minio/run.sh +++ b/minio/run.sh @@ -10,24 +10,17 @@ CONFIG="/data/options.json" # The jq command is used to parse the JSON file and extract the values ACCESS_KEY=$(jq -r .access_key "$CONFIG") SECRET_KEY=$(jq -r .secret_key "$CONFIG") -REGION=$(jq -r .region "$CONFIG") -BUCKET=$(jq -r .bucket "$CONFIG") - # Configure MinIO environment variables # These variables are used to set up the MinIO server # The ACCESS_KEY and SECRET_KEY are used for authentication -# The REGION is used to set the region for the MinIO server -# The BUCKET is the name of the bucket to be created export MINIO_ROOT_USER="$ACCESS_KEY" export MINIO_ROOT_PASSWORD="$SECRET_KEY" -export MINIO_REGION="${REGION:-us-east-1}" # Check if the bucket exists, if not create it -DATA_DIR="/data/$BUCKET" -mkdir -p "$DATA_DIR" +mkdir -p /data -echo "[INFO] Starting MinIO (user: $MINIO_ROOT_USER, region: $MINIO_REGION, bucket: $BUCKET)" +echo "[INFO] Starting MinIO (user: $MINIO_ROOT_USER)" # Autodetect if TLS certs are present # If they are, launch with HTTPS, otherwise use HTTP