docker-compose.yml
version: "3.9"
# rotating logs so they do not overflow
x-logging:
logging: &default-logging
driver: "local"
options:
max-size: "10m"
max-file: "3"
services:
# not replicated setup for test setup, use a proper aws S3 compatible cluster in production
minio:
image: quay.io/minio/minio:RELEASE.2023-03-13T19-46-17Z
container_name: minio
command: server /data --console-address ":9009"
restart: unless-stopped
logging: *default-logging
ports:
- "9000:9000"
- "9009:9009"
volumes:
- /opt/minio/data:/data
# configure env vars in .env file or your systems environment
environment:
- MINIO_ROOT_USER=${MINIO_ROOT_USER:-root}
- MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD:-root}