services: minio: image: minio/minio:${MINIO_VERSION:-RELEASE.2024-04-18T19-09-19Z} 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