Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hasanisaeed/minio-nginx-docker
Configuration MinIO with Nginx on Docker
https://github.com/hasanisaeed/minio-nginx-docker
docker docker-compose minio nginx nginx-configuration s3 s3-bucket s3-storage subdomain
Last synced: 3 months ago
JSON representation
Configuration MinIO with Nginx on Docker
- Host: GitHub
- URL: https://github.com/hasanisaeed/minio-nginx-docker
- Owner: hasanisaeed
- Created: 2022-03-02T08:47:35.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-30T05:45:06.000Z (over 1 year ago)
- Last Synced: 2023-10-30T06:34:35.715Z (over 1 year ago)
- Topics: docker, docker-compose, minio, nginx, nginx-configuration, s3, s3-bucket, s3-storage, subdomain
- Homepage:
- Size: 23.4 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Configuration MinIO with Nginx on Docker
### First of all clone this repository
After cloning:
```bash
cd minio-nginx-docker/
```--------------
## Initial Config 🦜
### Step 1: minio user
Create `minio` user with:
sudo useradd minio
Then add a password for the `minio` user by using the `passwd` command:
sudo passwd minio
### Step 2: Create shared folder
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
## Docker 🐳
### Step 3: Create docker container:
Create docker container with:
docker-compose up -d --build
> This command create your `s3` container. Check it with `docker ps` command.## Nginx 🔥
### Step 4: Create subdomain
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
## Run MinIO 🏃🏽♂️
Go to your browser and open [s3.localhost](http://s3.localhost).Username and password is in `.env` file. Login and create your `Buckets`. 🌟