# ParallaxTV Hub: https://parallaxtv.app/hub
#
# 1. Put this file in a folder of its own, for example ~/parallaxtv-hub.
# 2. Fill in the three values below.
# 3. In that folder run:  docker compose up -d
# 4. Open http://<this computer's address>:8642 for the pairing code.
services:
  hub:
    image: ghcr.io/freeradicalsgroup/parallaxtv-hub:latest
    container_name: parallaxtv-hub
    restart: unless-stopped
    ports:
      - '8642:8642'
    environment:
      # Your Pro license key, from the purchase email.
      PXTV_LICENSE_KEY: PXTV-XXXX-XXXX-XXXX-XXXX
      # This computer's address on your home network, e.g. 192.168.1.20.
      PXTV_HOSTNAME: 192.168.1.20
      # Your TVs' time zone, e.g. America/New_York or Europe/London.
      TZ: America/New_York
    volumes:
      # The Hub's settings, pairing and channels. Back this folder up.
      - ./data:/data
      # Optional: folders of commercials and bumpers, then list them in
      # data/config.yaml (see the guide). Remove the # to use one.
      # - /path/to/commercials:/media/interstitials:ro
      # Optional: movie and TV show folders the Hub serves as libraries.
      # - /path/to/movies:/media/movies:ro
      # - /path/to/tv:/media/tv:ro
