From 47e28480e730165fe975560e9d3e2ac73e118c95 Mon Sep 17 00:00:00 2001 From: Roger Sikorski Date: Fri, 31 Oct 2025 08:19:57 +0100 Subject: [PATCH] rustfs added --- .gitignore | 2 ++ rustfs/.env.app.dist | 15 +++++++++++++++ rustfs/compose.yaml | 15 +++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 rustfs/.env.app.dist create mode 100644 rustfs/compose.yaml diff --git a/.gitignore b/.gitignore index 2ead82c..a501787 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ .local volume/ + +.env.app diff --git a/rustfs/.env.app.dist b/rustfs/.env.app.dist new file mode 100644 index 0000000..daf2ffd --- /dev/null +++ b/rustfs/.env.app.dist @@ -0,0 +1,15 @@ + +#################################################################################################################### +### env from: https://github.com/rustfs/rustfs/blob/1.0.0-alpha.65/docs/examples/docker/docker-comprehensive.yml ### +#################################################################################################################### + +RUSTFS_ACCESS_KEY="devops" +RUSTFS_SECRET_KEY="CHANGE_ME" +RUSTFS_CONSOLE_ENABLE=true + +RUSTFS_SERVER_DOMAINS="rustfs.example.org" # this exanbles vHost Support +RUSTFS_ADDRESS="0.0.0.0:9000" +RUSTFS_CONSOLE_ADDRESS="0.0.0.0:9001" +RUSTFS_EXTERNAL_ADDRESS=":9000" +RUSTFS_CORS_ALLOWED_ORIGINS="https://rustfs.example.org" +RUSTFS_CONSOLE_CORS_ALLOWED_ORIGINS="https://console.rustfs.example.org" diff --git a/rustfs/compose.yaml b/rustfs/compose.yaml new file mode 100644 index 0000000..9c8a090 --- /dev/null +++ b/rustfs/compose.yaml @@ -0,0 +1,15 @@ +services: + rustfs: + # https://hub.docker.com/r/rustfs/rustfs + image: rustfs/rustfs:1.0.0-alpha.65 + hostname: unraid + container_name: rustfs + env_file: .env.app + ports: + - '9000:9000' # s3 api + - '9001:9001' # management ocnsole + volumes: + - /mnt/cache/rustfs:/data + tmpfs: + - /logs:size=1G + restart: unless-stopped