# Configuration for homarr-v1 setup

# Name of the big-bear-homarr-v1 application
name: big-bear-homarr-v1
# Service definitions for the big-bear-homarr-v1 application
services:
  # Service name: big-bear-homarr-v1
  # The `big-bear-homarr-v1` service definition
  big-bear-homarr-v1:
    # Name of the container
    container_name: big-bear-homarr-v1
    # Image to be used for the container
    image: ghcr.io/homarr-labs/homarr:v1.63.0
    # Container restart policy
    restart: unless-stopped
    # Volumes to be mounted to the container
    volumes:
      # Mounting docker.sock to allow docker management via Homarr
      - /var/run/docker.sock:/var/run/docker.sock
      # Mounting the local homarr directory to /appdata inside the container
      - /DATA/AppData/$AppID/appdata:/appdata
    # Environment variables
    environment:
      # Secret encryption key for securing sensitive data (64 character hex string)
      # Generate with: openssl rand -hex 32
      - SECRET_ENCRYPTION_KEY=
    # Ports mapping between host and container
    ports:
      # Mapping port 7575 of the host to port 7575 of the container
      - "7575:7575"
    x-casaos:
      envs:
        - container: SECRET_ENCRYPTION_KEY
          description:
            en_us: 'Container Variable: SECRET_ENCRYPTION_KEY'
      volumes:
        - container: /var/run/docker.sock
          description:
            en_us: 'Container Path: /var/run/docker.sock'
        - container: /appdata
          description:
            en_us: 'Container Path: /appdata'
      ports:
        - container: "7575"
          description:
            en_us: 'Container Port: 7575'
x-casaos:
  # Supported CPU architectures for this application
  architectures:
    - amd64
    - arm64
  # Main service for this application
  main: big-bear-homarr-v1
  # Detailed description for the application
  description:
    en_us: 'Homarr v1 - A sleek, modern dashboard for your server. This is the latest major version (v1.x) from homarr-labs with improved architecture and features. Note: This version uses a different data structure and requires SECRET_ENCRYPTION_KEY. Not compatible with legacy Homarr (v0.x) data without migration.'
  # Brief tagline for the application
  tagline:
    en_us: Homarr v1 (Latest)
  # Developer's information
  developer: homarr-labs
  # Author of this particular configuration
  author: BigBearTechWorld
  # Icon URL for the application
  icon: https://cdn.jsdelivr.net/gh/selfhst/icons/png/homarr.png
  # Thumbnail image for the application (if any)
  thumbnail: ""
  # Installation tips
  tips:
    before_install:
      en_us: 'Read this before installing: https://community.bigbeartechworld.com/t/added-homarr-v1-to-bigbearcasaos/5074#p-7710-documentation-2'
  # Title for the application
  title:
    en_us: Homarr v1
  # Category under which the application falls
  category: BigBearCasaOS
  # Default port mapping for the application
  port_map: "7575"
