# Optional standalone virtual AI Port (UP AI PORT X) on its own LAN IP via Docker macvlan. # # Use this when you need additional virtual AI Port instances (for example, more high-resolution # ONVIF or legacy UniFi cameras than a single AI Port's capacity allows) or want to keep the AI Port # off your host's port 443 without moving a NAS web UI. # # No PostgreSQL container or duplicate AI Key is started: your primary Keystone AI Key still handles # Find Anything search and event descriptions for every camera on the console. # # Requires Keystone v0.1.5+ (or set KEYSTONE_IMAGE_TAG=edge in .env until that release is tagged). # # Before running: # 1. Create a host state directory owned by UID/GID 10001: # sudo install -d -m 0700 -o 10001 -g 10001 ./state-aiport-2 # 2. Set the variables below in .env (or edit the defaults in this file): # KEYSTONE_CONTROLLER_IP=192.0.2.10 # KEYSTONE_AIPORT_PARENT_IFACE=eth1 # KEYSTONE_AIPORT_SUBNET=192.0.2.0/24 # KEYSTONE_AIPORT_GATEWAY=192.0.2.1 # KEYSTONE_AIPORT_IP=192.0.2.61 # 3. Start with: # docker compose -f docker-compose.aiport.yml up -d # (Add another service to this file with a new service name, container_name, hostname, IP, and state folder # for each additional virtual AI Port.) name: keystone-aiport-2 services: keystone-aiport-2: image: ghcr.io/seearms/keystone:${KEYSTONE_IMAGE_TAG:-latest} container_name: ${KEYSTONE_AIPORT_CONTAINER:-keystone-aiport-2} restart: unless-stopped cap_drop: - ALL cap_add: - NET_BIND_SERVICE networks: keystone_lan: ipv4_address: ${KEYSTONE_AIPORT_IP:-192.0.2.61} volumes: - ./state-aiport-2:/state environment: KEYSTONE_STATE_DIR: /state KEYSTONE_CONTROLLER_HOST: ${KEYSTONE_CONTROLLER_IP:?Set KEYSTONE_CONTROLLER_IP in .env} KEYSTONE_CONTROLLER_API_KEY: ${KEYSTONE_CONTROLLER_API_KEY:-} KEYSTONE_CONTROLLER_API_FINGERPRINT: ${KEYSTONE_CONTROLLER_API_FINGERPRINT:-} KEYSTONE_DEVICE_ENABLED: "false" KEYSTONE_AIPORT_ENABLED: "true" KEYSTONE_AIPORT_HOSTNAME: ${KEYSTONE_AIPORT_HOSTNAME:-keystone-aiport-2} # Enable if you want this AI Port to emit native face or license plate detections on its paired cameras: # KEYSTONE_FACES_ENABLED: "true" # KEYSTONE_LPR_ENABLED: "true" # Optional status dashboard on this AI Port's LAN IP (no login; shows recent activity): KEYSTONE_WEB_ENABLED: ${KEYSTONE_AIPORT_WEB_ENABLED:-false} KEYSTONE_WEB_BIND_HOST: ${KEYSTONE_AIPORT_WEB_BIND_HOST:-0.0.0.0} networks: keystone_lan: driver: macvlan driver_opts: parent: ${KEYSTONE_AIPORT_PARENT_IFACE:?Set KEYSTONE_AIPORT_PARENT_IFACE (e.g. eth1 or enp2s0)} ipam: config: - subnet: ${KEYSTONE_AIPORT_SUBNET:-192.0.2.0/24} gateway: ${KEYSTONE_AIPORT_GATEWAY:-192.0.2.1}