Remove comments v2
This commit is contained in:
@@ -1,54 +1,33 @@
|
||||
# MinIO Object Storage Service Configuration
|
||||
services:
|
||||
# MinIO Server Service
|
||||
minio:
|
||||
# Basic container configuration
|
||||
container_name: minio
|
||||
image: docker.io/minio/minio:RELEASE.2025-07-18T21-56-31Z # Official MinIO image
|
||||
restart: unless-stopped # Auto-restart on failure
|
||||
|
||||
# Runtime command and user permissions
|
||||
command: server /data # Start in server mode
|
||||
user: ${PUID}:${PGID} # Run as specified user/group
|
||||
|
||||
# Environment variables for authentication and configuration
|
||||
image: docker.io/minio/minio:RELEASE.2025-07-18T21-56-31Z
|
||||
restart: unless-stopped
|
||||
command: server /data
|
||||
user: ${PUID}:${PGID}
|
||||
environment:
|
||||
- MINIO_ROOT_USER=${MINIO_ROOT_USER} # Admin username
|
||||
- MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD} # Admin password
|
||||
- MINIO_SERVER_URL=${MINIO_SERVER_URL} # Public server endpoint URL
|
||||
- MINIO_BROWSER_REDIRECT_URL=${MINIO_BROWSER_REDIRECT_URL} # Web console redirect URL
|
||||
|
||||
# Persistent data storage
|
||||
- MINIO_ROOT_USER=${MINIO_ROOT_USER}
|
||||
- MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD}
|
||||
- MINIO_SERVER_URL=${MINIO_SERVER_URL}
|
||||
- MINIO_BROWSER_REDIRECT_URL=${MINIO_BROWSER_REDIRECT_URL}
|
||||
volumes:
|
||||
- ${APPDATA_PATH}/minio/data:/data # Maps host directory to container
|
||||
|
||||
# Network ports
|
||||
- ${APPDATA_PATH}/minio/data:/data
|
||||
ports:
|
||||
- ${API_PORT}:9000 # MinIO API port
|
||||
|
||||
# Health check configuration
|
||||
- ${API_PORT}:9000
|
||||
healthcheck:
|
||||
test: ["CMD", "mc", "ready", "local"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
# MinIO Console Service (separate from main server)
|
||||
minio-console:
|
||||
# Basic container configuration
|
||||
container_name: minio-console
|
||||
image: ghcr.io/georgmangold/console:v1.8.1 # Community console UI
|
||||
restart: unless-stopped # Auto-restart on failure
|
||||
|
||||
# Service dependencies
|
||||
image: ghcr.io/georgmangold/console:v1.8.1
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
minio:
|
||||
condition: service_healthy
|
||||
|
||||
# Environment configuration
|
||||
environment:
|
||||
- CONSOLE_MINIO_SERVER=http://minio:9000 # Points to MinIO server
|
||||
|
||||
# Network ports
|
||||
- CONSOLE_MINIO_SERVER=http://minio:9000
|
||||
ports:
|
||||
- ${CONSOLE_PORT}:9090 # Web console access port
|
||||
- ${CONSOLE_PORT}:9090
|
||||
|
Reference in New Issue
Block a user