- docker 拉去镜像
docker pull minio/minio:latest
- 启动容器
docker run -p 8000:9000 -p 8001:9001 --name minio \ -d --restart=always \ -e "MINIO_ACCESS_KEY=admin" \ -e "MINIO_SECRET_KEY=**********" \ -e "MINIO_SERVER_URL=https://Your_Domin.com:8001" \ -e "MINIO_BROWSER_REDIRECT_URL=https://Your_Domin.com:8000" \ -v /opt/minio/data:/data \ -v /opt/minio/config:/root/.minio \ minio/minio server \ /data --console-address ":9000" -address ":9001"
- 或
docker run --name minio \ -d --restart=always \ --network=host \ -e "MINIO_ACCESS_KEY=admin" \ -e "MINIO_SECRET_KEY=***" \ -v /data/data_mate/download/minio/data:/data \ -v /data/data_mate/download/minio/config:/root/.minio \ minio/minio server \ /data --console-address ":8000" -address ":8001"
NGINX 代理配置需要增加配置 websocket
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_next_upstream http_500 http_502 http_503 http_504 error timeout invalid_header;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- 访问 地址 http://ip:8000