# modem-bridge: Headless Chromium REST API for TP-Link ONU access
# targo-hub (3300) -> modem-bridge (3301) -> TP-Link ONU (172.17.x.x:443)
# Internal only (no Traefik), token auth, read-only, 5 min idle timeout

services:
  modem-bridge:
    build: .
    container_name: modem-bridge
    restart: unless-stopped
    volumes:
      - ./server.js:/app/server.js:ro
      - ./lib:/app/lib:ro
    environment:
      - BRIDGE_PORT=3301
      - BRIDGE_TOKEN=${BRIDGE_TOKEN:-}
    deploy:
      resources:
        limits:
          memory: 512M
    networks:
      - proxy

networks:
  proxy:
    external: true
