Raised: $0
0% of monthly goal Help us cross the finish line!
Goal: $12,000
Raised: $0 Goal: $12,000
0% of monthly goal Help us cross the finish line!
Sponsor DDEV

ddev-rustfs

ddev-rustfs is a DDEV add-on that provides a local, S3-compatible object storage using RustFS.

It is intended for local development setups that expect Storage::disk('s3') to work (e.g. Laravel).

What you get

Installation

From a local checkout:

ddev add-on get ./ddev-rustfs
ddev restart

From GitHub (once published):

ddev add-on get <org-or-user>/ddev-rustfs
ddev restart

URLs

With a DDEV project name like myproj:

Credentials

Laravel .env example

Use the internal DDEV service hostname (rustfs) for the endpoint:

FILESYSTEM_DISK=s3

AWS_ACCESS_KEY_ID=rustfsadmin
AWS_SECRET_ACCESS_KEY=rustfsadmin
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=rustfs

AWS_ENDPOINT=http://rustfs:9000
AWS_USE_PATH_STYLE_ENDPOINT=true

Notes:

Default bucket creation

On startup, the add-on runs a small init container that ensures a bucket exists.

AWS__DEFAULT_BUCKET=rustfs

Then set your application’s AWS_BUCKET to the same value.

Troubleshooting

Tests

There is a small Bats smoke test in tests/test.bats