" /> " />

目 录CONTENT

文章目录

docker-compose部署 minio单机版本

Administrator
2024-11-20 / 0 评论 / 0 点赞 / 0 阅读 / 1493 字

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

0
  1. 支付宝打赏

    qrcode alipay
  2. 微信打赏

    qrcode weixin

评论区