Introduction
docker & docker-compose部署 minio单机版本
docker network create platform-common-net --driver bridge --subnet 172.25.64.0/18 --gateway 172.25.64.1
version: '3'
services:
minio:
image: minio/minio
restart: always
ports:
- "9000:9000"
- "9090:9090"
environment:
MINIO_ACCESS_KEY: {user}
MINIO_SECRET_KEY: {passwd}
volumes:
- ./data:/data
- ./config:/root/.minio
command: server /data --console-address ":9090"
# 网络配置可选
networks:
- platform-common-net
hostname: minio.local
# labels 可选
labels:
- "traefik.enable=true"
- "traefik.http.services.backend-minio.loadbalancer.server.port=9090"
- "traefik.http.routers.backend-minio.rule=Host(`localhost`) && PathPrefix(`/api/v1/minio/`)"
- "traefik.http.routers.backend-minio.entrypoints=http"
networks:
platform-common-net:
external: true
评论区