networks:
  1panel-network:
    external: true

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