forked from kofal.net/stoatchat-self-hosted
Auto-create S3 buckets for minio.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1,3 @@
|
|||||||
data
|
data
|
||||||
|
data.old
|
||||||
.env
|
.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
|
## Quick Start
|
||||||
|
|
||||||
|
|||||||
@@ -38,6 +38,23 @@ services:
|
|||||||
- "10000:9000"
|
- "10000:9000"
|
||||||
restart: always
|
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)
|
# REVOLT file hosting service (Autumn)
|
||||||
autumn:
|
autumn:
|
||||||
image: revoltchat/autumn
|
image: revoltchat/autumn
|
||||||
|
|||||||
Reference in New Issue
Block a user