Auto-create S3 buckets for minio.

pull/3/head
Paul 4 years ago
parent 02156f9588
commit fd5e411c1d

1
.gitignore vendored

@ -1,2 +1,3 @@
data
data.old
.env

@ -1,4 +1,4 @@
This is still a work-in-progress and some things may not work, notably Autumn does not auto-create S3 buckets yet.
This is still a work-in-progress and some things may not work but for the most part everything has been tested without issue!
## Quick Start

@ -38,6 +38,23 @@ services:
- "10000:9000"
restart: always
# Create buckets for minio.
createbuckets:
image: minio/mc
depends_on:
- minio
env_file: .env
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set minio http://minio:9000 $MINIO_ROOT_USER $MINIO_ROOT_PASSWORD;
/usr/bin/mc mb minio/attachments;
/usr/bin/mc mb minio/avatars;
/usr/bin/mc mb minio/backgrounds;
/usr/bin/mc mb minio/icons;
/usr/bin/mc mb minio/banners;
exit 0;
"
# REVOLT file hosting service (Autumn)
autumn:
image: revoltchat/autumn

Loading…
Cancel
Save