docker-compose.yml
minio:
image: minio/minio:latest
container_name: minio
environment:
MINIO_ROOT_USER: admin
MINIO_ROOT_PASSWORD: password
MINIO_SERVER_URL: https://localhost:9000
command: server --address :9000 --console-address :9001 /data
volumes:
- ../certs:/root/.minio/certs #localhostで有効な証明書置き場
ports:
- 9000:9000
- 9001:9001
ポイント
MINIO_SERVER_URL
を指定しないと、以下のURL以外ではコンソールアクセスが
Post "https://172.18.0.3:9000/": x509: cannot validate certificate for 172.18.0.3 because it doesn't contain any IP SANs
というエラーになってしまう。
minio | API: https://172.18.0.3:9000 https://127.0.0.1:9000
minio | Console: https://172.18.0.3:9001 https://127.0.0.1:9001