After cloning:
cd minio-nginx-docker/
Create minio
user with:
sudo useradd minio
Then add a password for the minio
user by using the passwd
command:
sudo passwd minio
Make minIO directory and change owner to minio
user:
sudo mkdir -p /usr/local/share/minio
sudo chown -R minio:minio /usr/local/share/minio
Create docker container with:
docker-compose up -d --build
This command create your
s3
container. Check it withdocker ps
command.
Open /etc/hosts
file and add your subdomain:
127.0.0.1 localhost
127.0.0.1 s3.localhost # You can rename `s3` with desired name.
So at /etc/nginx/sites-enabled/default
edit server_name key as s3.localhost
.
...
// add this block at the end of `default` file:
server {
listen 80;
listen [::]:80;
server_name s3.localhost;
index index.html;
location / {
proxy_pass http://127.0.0.1:9001/;
}
}
Then restart nginx:
sudo service nginx reload
Go to your browser and open s3.localhost.
Username and password is in .env
file. Login and create your Buckets
. 🌟