diff --git a/README.md b/README.md index 24009b4..641bbb4 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,20 @@ You can run your application in dev mode that enables live coding using: > **_NOTE:_** Quarkus now ships with a Dev UI, which is available in dev mode only at . +## Bootstrapping buckets + +Buckets can be created automatically on startup by setting the environment variable `DEV_DINAUER_R9T_INIT_BUCKETS` to a comma-separated list of bucket names: + +```shell script +DEV_DINAUER_R9T_INIT_BUCKETS=invoices,images,backups +``` + +Alternatively the property `dev.dinauer.r9t.init.buckets` can be set in `application.properties`. + +- Buckets that already exist are skipped. +- Bucket names follow the regular naming rules (3-63 characters, lowercase letters, digits, `.` and `-`). An invalid name prevents the application from starting. +- If the variable is not set, no buckets are created. + ## Packaging and running the application The application can be packaged using: