mkdir minio
cd minio
vi dockerfile
dockerfile的内容:
# 基础镜像
FROM minio/minio
# author
MAINTAINER cjq
新建docker-compose.yml:
cd ..
vi docker-compose.yml
docker-compose.yml内容为:
version : '3.8'
services:
kuma-minio:
container_name: kuma-minio
image: minio/minio
build:
context: ./minio
environment:
- MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin123
volumes:
- ./minio/data:/data
- ./minio/config:/root/.minio
ports:
- "9000:9000"
- "9090:9090"
command: server /data --console-address ":9090" -address ":9000"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
构建并启动:
docker-compose up -d kuma-minio
标签:150,compose,minio,9090,kuma,9000,docker
From: https://blog.51cto.com/u_14816966/5956068