title: Docker:部署分布式存储minIO tags: [] id: '1910' categories:
[req]
distinguished_name = req_distinguished_name
x509_extensions = v3_req
prompt = no
[req_distinguished_name]
C = US
ST = VA
L = Somewhere
O = MyOrg
OU = MyOU
CN = minio2.j11.fun
[v3_req]
subjectAltName = @alt_names
version: '3.7'
services:
minio:
restart: unless-stopped
hostname: minio2.j11.fun
image: minio/minio
volumes:
- ./data1:/data1
- ./data2:/data2
- ./config:/root/.minio/certs
network_mode: host
extra_hosts:
- "minio1.j11.fun:155.248.208.5" # 1st node
- "minio2.j11.fun:127.0.0.1" # 2nd node
environment:
MINIO_ROOT_USER: ***
MINIO_ROOT_PASSWORD: ***
command: server --console-address ":9001" https://minio{1...2}.j11.fun/data{1...2}