# cogeco-checker: Headless Chromium REST API for Cogeco serviceability checks
# targo-hub (3300) -> cogeco-checker (3302) -> cogeco.ca address checker
# Internal only (no Traefik), token auth, serialized + rate-limited.
# Needs outbound internet (reaches cogeco.ca), so it sits on the proxy net.

services:
  cogeco-checker:
    build: .
    container_name: cogeco-checker
    restart: unless-stopped
    volumes:
      - ./server.js:/app/server.js:ro
      - ./lib:/app/lib:ro
    environment:
      - CHECKER_PORT=3302
      - CHECKER_TOKEN=${CHECKER_TOKEN:-}
      - CHECKER_MIN_GAP_MS=${CHECKER_MIN_GAP_MS:-4000}
    deploy:
      resources:
        limits:
          memory: 768M
    networks:
      - proxy

networks:
  proxy:
    external: true
