services:
  idrac-info:
    image: "${IDRAC_INFO_IMAGE:-gitea.mouse84.com/kim.kanghee/idrac-info:latest}"
    container_name: idrac-info
    network_mode: "host"
    environment:
      FLASK_HOST: "0.0.0.0"
      FLASK_PORT: "${FLASK_PORT:-6050}"
      FLASK_DEBUG: "false"
      APP_DATA_DIR: "/app/data"
      SOCKETIO_ASYNC_MODE: "threading"
      AUTO_BOOTSTRAP_DB: "${AUTO_BOOTSTRAP_DB:-true}"
      SECRET_KEY: "${SECRET_KEY:-change-me-in-docker}"
      REDFISH_VERIFY_SSL: "${REDFISH_VERIFY_SSL:-false}"
      REDFISH_TIMEOUT: "${REDFISH_TIMEOUT:-15}"
      FILES_PER_PAGE: "${FILES_PER_PAGE:-35}"
      BACKUP_FILES_PER_PAGE: "${BACKUP_FILES_PER_PAGE:-10}"
      MAX_WORKERS: "${MAX_WORKERS:-60}"
      TELEGRAM_BOT_TOKEN: "${TELEGRAM_BOT_TOKEN:-}"
      TELEGRAM_CHAT_ID: "${TELEGRAM_CHAT_ID:-}"
    volumes:
      - ./backend/instance:/app/backend/instance
    restart: unless-stopped
