mirror of
https://github.com/stoatchat/self-hosted.git
synced 2026-03-20 01:35:16 -05:00
Auto-create S3 buckets for minio.
This commit is contained in:
1
.gitignore
vendored
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
|
||||
|
||||
Reference in New Issue
Block a user