2025-05-26 21:45:30 +08:00
|
|
|
services:
|
|
|
|
minio:
|
2025-06-05 15:44:06 +08:00
|
|
|
image: minio/minio
|
2025-05-26 21:45:30 +08:00
|
|
|
container_name: minio
|
|
|
|
restart: always
|
|
|
|
ports:
|
2025-05-27 08:56:38 +08:00
|
|
|
- '9000:9000'
|
|
|
|
- '9001:9001'
|
2025-05-26 21:45:30 +08:00
|
|
|
networks:
|
|
|
|
- nice-net
|
|
|
|
environment:
|
2025-06-05 15:44:06 +08:00
|
|
|
- MINIO_ACCESS_KEY=nice1234
|
|
|
|
- MINIO_SECRET_KEY=nice1234
|
2025-05-26 21:45:30 +08:00
|
|
|
volumes:
|
2025-05-27 09:18:05 +08:00
|
|
|
- ./volumes/minio:/data
|
2025-05-26 21:45:30 +08:00
|
|
|
command: server /data --console-address ":9001"
|
|
|
|
healthcheck:
|
2025-05-27 08:56:38 +08:00
|
|
|
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
|
2025-05-26 21:45:30 +08:00
|
|
|
interval: 30s
|
|
|
|
timeout: 20s
|
|
|
|
retries: 3
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
storage_data:
|
|
|
|
driver: local
|
|
|
|
driver_opts:
|
|
|
|
type: none
|
2025-06-05 15:44:06 +08:00
|
|
|
device: /opt/projects/nice/volumes/minio
|
2025-05-26 21:45:30 +08:00
|
|
|
o: bind
|