fenghuo/dockers/storage-minio.yml

32 lines
776 B
YAML
Raw Normal View History

2025-05-26 21:45:30 +08:00
services:
minio:
image: minio/minio:${MINIO_VERSION:-RELEASE.2024-04-22T22-12-26Z}
container_name: minio
restart: always
ports:
- "9000:9000"
- "9001:9001"
networks:
- nice-net
environment:
- MINIO_ACCESS_KEY=${MINIO_ACCESS_KEY:-nice_minio_access}
- MINIO_SECRET_KEY=${MINIO_SECRET_KEY:-nice_minio_secret}
volumes:
- type: volume
source: storage_data
target: /data
command: server /data --console-address ":9001"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
volumes:
storage_data:
driver: local
driver_opts:
type: none
device: ${PWD}/volumes/minio
o: bind