Skip to main content
HugBucket is distributed as a Docker image at ghcr.io/sachnun/hugbucket. It runs in either S3 or FTP mode depending on the MODE environment variable.
MODE is required. The container exits immediately if it is not set.

Prerequisites

  • Docker installed
  • A Hugging Face token (HF_TOKEN) with read/write access to your storage buckets

Running HugBucket

The S3 gateway listens on port 9000 and exposes an S3-compatible API.
1

Pull and run the container

2

Verify the gateway is running

Use the AWS CLI to list buckets through the local endpoint:
3

Upload a file

If AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY are both left empty, S3 authentication is disabled and any client can connect without credentials. Set both to non-empty values to require authentication.

Port reference

These are the ports declared with EXPOSE in the Dockerfile. Publish only the ports relevant to your chosen mode.

Docker Compose

The following Compose file shows both modes as separate services. Run only the service for the mode you need.
Start a single service:
Do not run both services simultaneously with the same HF_TOKEN if they target the same Hugging Face namespace, unless you have tested for write conflicts.