# Configuration for kasm setup

# Name of the big-bear-kasm application
name: big-bear-kasm
# Service definitions for the big-bear-kasm application
services:
  # Service name: app
  # The `app` service definition
  app:
    # Name of the container
    container_name: big-bear-kasm
    # Image to be used for the container
    image: linuxserver/kasm:1.120.20221218
    # Container restart policy
    restart: unless-stopped
    # Privilege of the container
    privileged: true
    # Uses bridge network mode
    network_mode: bridge
    # Volumes to be mounted to the container
    volumes:
      # Mounting the local kasm/opt directory to /opt inside the container
      - /DATA/AppData/$AppID/opt:/opt
      # Mounting the local kasm/profiles directory to /profiles inside the container
      - /DATA/AppData/$AppID/profiles:/profiles
      # Mounting the local /dev/input directory to /dev/input inside the container
      - /dev/input:/dev/input
      # Mounting the local /run/udev/data directory to /run/udev/data inside the container
      - /run/udev/data:/run/udev/data
    # Ports mapping between host and container
    ports:
      # Mapping port 3000 of the host to port 3000 of the container
      - "3000:3000"
      # Mapping port 443 of the host to port 443 of the container
      - "443:443"
    # Environment variables
    environment:
      # Tell Kasm where the port number
      - KASM_PORT=443
    x-casaos:
      envs:
        - container: KASM_PORT
          description:
            en_us: 'Container Variable: KASM_PORT'
      volumes:
        - container: /opt
          description:
            en_us: 'Container Path: /opt'
        - container: /profiles
          description:
            en_us: 'Container Path: /profiles'
        - container: /dev/input
          description:
            en_us: 'Container Path: /dev/input'
        - container: /run/udev/data
          description:
            en_us: 'Container Path: /run/udev/data'
      ports:
        - container: "3000"
          description:
            en_us: 'Container Port: 3000'
        - container: "443"
          description:
            en_us: 'Container Port: 443'
x-casaos:
  # Supported CPU architectures for this application
  architectures:
    - amd64
    - arm64
  # Main service for this application
  main: app
  # Detailed description for the application
  description:
    en_us: The Container Streaming Platform - Streaming containerized apps and desktops to end-users. The Workspaces platform provides enterprise-class orchestration, data loss prevention, and web streaming technology to enable the delivery of containerized workloads to your browser.
  # Brief tagline for the application
  tagline:
    en_us: Kasm
  # Developer's information
  developer: Kasm
  # Author of this particular configuration
  author: BigBearCommunity
  # Icon URL for the application
  icon: https://avatars.githubusercontent.com/u/44181855?s=280&v=4
  # Thumbnail image for the application (if any)
  thumbnail: ""
  # Installation tips
  tips:
    before_install:
      en_us: |
        Admin default address: admin@kasm.local
        User default address: user@kasm.local
  # Title for the application
  title:
    en_us: Kasm
  # Category under which the application falls
  category: BigBearCasaOS
  # Default port mapping for the application
  port_map: "3000"
