networks:
  1panel-network:
    external: true
services:
  minio:
    command: server --console-address :${PANEL_APP_PORT_HTTP} --address :${PANEL_APP_PORT_API}
      --json
    container_name: minio
    env_file:
    - ./envs/global.env
    - .env
    environment:
    - MINIO_VOLUMES=/data
    - MINIO_API_ROOT_ACCESS=on
    - MINIO_BROWSER_REDIRECT=true
    extra_hosts:
    - ${MINIO_SERVER_HOST:-localhost}:127.0.0.1
    image: qyg2297248353/minio:RELEASE.2025-04-22T22-12-26Z
    labels:
      createdBy: Apps
    logging:
      driver: json-file
      options:
        max-file: '10'
        max-size: 5M
    networks:
    - 1panel-network
    ports:
    - ${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP}
    - ${PANEL_APP_PORT_API}:${PANEL_APP_PORT_API}
    restart: always
    volumes:
    - ${MINIO_ROOT_PATH}/certs:/root/.minio/certs
    - ${MINIO_ROOT_PATH}/data:/data
