|
@@ -5,20 +5,35 @@
|
|
|
Scope of the **basic setup** is to run minio
|
|
|
- as unprivileged user
|
|
|
- with a directoy mounted for data
|
|
|
-- with the container port 9000 (s3) mapped to a host port
|
|
|
+- with the container port 9000 (s3 + web ui) mapped to a host port
|
|
|
|
|
|
Scope of the **advance setup** is to run minio
|
|
|
- web ui (console, port 9001) with basic auth behind a reverse-proxy (port 443) with letsencrypt
|
|
|
- s3 (port 9000) with the tls cert from above and restricted to certain source IPs
|
|
|
|
|
|
|
|
|
+
|
|
|
## Configuration
|
|
|
### Basic Configuration
|
|
|
-1. Prepare your .env file: `cp .env.template .env`
|
|
|
-2. [Generate](../KEY-GENERATION.md) and add your admin keys in .env
|
|
|
-3. Create a home and data directory owned by 1000:1000
|
|
|
-4. Define your port mapping
|
|
|
+```
|
|
|
+# Prepare a directory
|
|
|
+miniodir="/opt/docker/minio"
|
|
|
+[ -d $miniodir ] && echo "Directory $miniodir already exists" && exit 1
|
|
|
+mkdir -p /opt/docker/
|
|
|
+cd /opt/docker/
|
|
|
+
|
|
|
+# Clone repo
|
|
|
+git clone https://git.in-ulm.de/ulpeters/minio.git
|
|
|
+
|
|
|
+# Prepare your configuration
|
|
|
+cp .env.template .env
|
|
|
+ # [Generate](../KEY-GENERATION.md) and add your admin keys in .env
|
|
|
+ # Define your port mapping
|
|
|
|
|
|
+# Create a home and data directory owned by 1000:1000
|
|
|
+mkdir -p $miniodir/data/home $miniodir/data/data
|
|
|
+chown -R 1000:1000 $miniodir
|
|
|
+```
|
|
|
### Advanced Configuration
|
|
|
|
|
|
#### Preconditions:
|