Nomploy Nomad Packs

← All packs

minio v0.1.0

Object storage

MinIO — a high-performance, S3-compatible object storage server. Store files, backups, and artifacts and access them with any S3 client or SDK, with a built-in web console for buckets and users. Deployed as a host-networked Nomad service with a persistent data volume.

nomad-pack run minio --registry nomploy
…or one line (add registry + run)
curl -fsSL https://packs.nomploy.com/install.sh | sh -s -- minio

Needs nomad-pack on PATH. The script only adds the nomploy registry and runs this pack.

1 task api 9000console 9001 1 volume image minio/minio:latest tracks :latest image bumped today
Variables 11
values.hcl

Save as values.hcl, edit, then run:

nomad-pack run minio -f values.hcl --registry nomploy
# The name of the Nomad job.
job_name = "minio"

# The Nomad namespace to deploy into.
namespace = "default"

# The datacenters to deploy to.
datacenters = ["*"]

# The MinIO container image. Pin a tag in production.
image = "minio/minio:latest"

# Host port for the S3 API (--address).
port = 9000

# Host port for the web console (--console-address).
console_port = 9001

# Root access key (MINIO_ROOT_USER). Must be at least 3 characters.
root_user = "minioadmin"

# Root secret key (MINIO_ROOT_PASSWORD). CHANGE THIS — must be at least 8 characters.
root_password = "change-me-min-8-chars"

# Named volume for object data (/data). Holds all buckets and objects.
data_volume = "minio_data"

# Placement constraints. Pin to the node holding the volume. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
constraints = []

# Resources for the MinIO task.
resources = {
    cpu    = 500
    memory = 512
  }
NameTypeDefaultDescription
job_name string
"minio"
The name of the Nomad job.
namespace string
"default"
The Nomad namespace to deploy into.
datacenters list
["*"]
The datacenters to deploy to.
image string
"minio/minio:latest"
The MinIO container image. Pin a tag in production.
port number
9000
Host port for the S3 API (--address).
console_port number
9001
Host port for the web console (--console-address).
root_user string
"minioadmin"
Root access key (MINIO_ROOT_USER). Must be at least 3 characters.
root_password set me string
"change-me-min-8-chars"
Root secret key (MINIO_ROOT_PASSWORD). CHANGE THIS — must be at least 8 characters.
data_volume string
"minio_data"
Named volume for object data (/data). Holds all buckets and objects.
constraints list
[]
Placement constraints. Pin to the node holding the volume. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
resources object
{
    cpu    = 500
    memory = 512
  }
Resources for the MinIO task.
Back up this pack

This pack stores data in one Docker named volume: minio_data

restic

# Run on the node hosting this pack. Point restic at your repo first:
#   export RESTIC_REPOSITORY="s3:https://<account>.r2.cloudflarestorage.com/<bucket>"
#   export RESTIC_PASSWORD="<repo-password>"
#   export AWS_ACCESS_KEY_ID=<key>  AWS_SECRET_ACCESS_KEY=<secret>
restic backup \
  /var/lib/docker/volumes/minio_data/_data

rclone (sync to S3/R2)

rclone sync /var/lib/docker/volumes/minio_data/_data backup:<bucket>/minio_data

Paths assume the default Docker volume location (/var/lib/docker/volumes). Restore by stopping the job, restoring files into the same volume, and re-running the pack.

Readme

minio

MinIO — a high-performance, S3-compatible object storage server. Use it as a drop-in S3 backend for backups, application uploads, build artifacts, and anything that speaks the S3 API, with a web console for managing buckets, users, and access keys.

Single host-networked Nomad service with a persistent /data volume.

Deploy

nomad-pack registry add nomploy https://github.com/Nomploy/nomad-packs
nomad-pack run minio --registry=nomploy

Configure

Variable Default Description
port 9000 S3 API port (--address).
console_port 9001 Web console port (--console-address).
root_user minioadmin MINIO_ROOT_USER (≥ 3 chars).
root_password change-me-… MINIO_ROOT_PASSWORDchange it (≥ 8 chars).
data_volume minio_data /data — all buckets and objects.
image minio/minio:latest Container image. Pin a tag in production.
resources { cpu = 500, memory = 512 } Task resources.

Open the console at http://<node-ip>:9001, or point an S3 client at http://<node-ip>:9000 (region us-east-1). Serves plain HTTP — front it with a reverse proxy for TLS. This is a single-node deployment (great for backups/artifacts/app storage); pin it to the node holding the volume with constraints. Pairs well with the backup pack (restic → S3).