# Docker Compose configuration for BigBearWishlist Service
# This service provides a web interface for managing Wishlist
# Version: v0.42.5

# Name of the big-bear-wishlist application
name: big-bear-wishlist
# Service definitions for the big-bear-wishlist application
services:
  # Main service configuration for the BigBearWishlist application
  # This service provides a web interface running on port 3280 for user administration
  big-bear-wishlist:
    # Name of the container
    container_name: big-bear-wishlist
    # Image to be used for the container specifies the wishlist version and source
    image: ghcr.io/cmintey/wishlist:v0.64.0
    # Container restart policy - restarts the container unless manually stopped
    restart: unless-stopped
    # Environment variables for service configuration
    # These settings control the Flask application behavior and default admin credentials
    environment:
      # If behind a reverse proxy, set this to your domain
      ORIGIN: ""
      # Hours until signup and password reset tokens expire
      TOKEN_TIME: "72"
      # The currency to use when a product search does not return a currency
      DEFAULT_CURRENCY: USD
      # Set the logging level: trace | debug | info | warn | error | fatal | silent
      LOG_LEVEL: info
    # Volume mappings required for system integration
    # These mounts allow the container to interact with the host system
    volumes:
      - /DATA/AppData/$AppID/uploads:/usr/src/app/uploads
      - /DATA/AppData/$AppID/data:/usr/src/app/data
    # Map port 3280 on the host to port 3280 on the container
    ports:
      - "3280:3280"
    x-casaos:
      envs:
        - container: ORIGIN
          description:
            en_us: 'Container Variable: ORIGIN'
        - container: TOKEN_TIME
          description:
            en_us: 'Container Variable: TOKEN_TIME'
        - container: DEFAULT_CURRENCY
          description:
            en_us: 'Container Variable: DEFAULT_CURRENCY'
        - container: LOG_LEVEL
          description:
            en_us: 'Container Variable: LOG_LEVEL'
      volumes:
        - container: /usr/src/app/uploads
          description:
            en_us: 'Container Path: /usr/src/app/uploads'
        - container: /usr/src/app/data
          description:
            en_us: 'Container Path: /usr/src/app/data'
      ports:
        - container: "3280"
          description:
            en_us: 'Container Port: 3280'
x-casaos:
  # Supported CPU architectures for this application
  architectures:
    - amd64
    - arm64
  # Main service for this application
  main: big-bear-wishlist
  # Detailed description for the application
  description:
    en_us: Wishlist is a self-hosted wishlist application that you can share with your friends and family. You no longer have to wonder what to get your family for the holidays, simply check their wishlist and claim any available item!
  # Screenshot links for the application
  screenshot_link:
    - https://cdn.jsdelivr.net/gh/bigbeartechworld/big-bear-universal-apps@main/apps/wishlist/screenshots/screenshot-1.png
    - https://cdn.jsdelivr.net/gh/bigbeartechworld/big-bear-universal-apps@main/apps/wishlist/screenshots/screenshot-2.png
    - https://cdn.jsdelivr.net/gh/bigbeartechworld/big-bear-universal-apps@main/apps/wishlist/screenshots/screenshot-3.png
  # Brief tagline for the application
  tagline:
    en_us: Wishlist is a self-hosted wishlist application that you can share with your friends and family.
  # Developer's information
  developer: cmintey
  # Author of this particular configuration
  author: BigBearTechWorld
  # Icon URL for the application
  icon: https://cdn.jsdelivr.net/gh/bigbeartechworld/big-bear-universal-apps/apps/wishlist/logo.png
  # Thumbnail image for the application (if any)
  thumbnail: https://cdn.jsdelivr.net/gh/bigbeartechworld/big-bear-universal-apps/apps/wishlist/thumbnail.png
  # Installation tips
  tips:
    before_install:
      en_us: |
        Read this before installing: https://community.bigbeartechworld.com/t/added-wishlist-to-bigbearcasaos/3555?u=dragonfire1119
  # Title for the application
  title:
    en_us: Wishlist
  # Category under which the application falls
  category: BigBearCasaOS
  # Default port mapping for the application
  port_map: "3280"
