# A probe. install-probe.sh sets this up on each machine (see README); by hand it is: # clone into /opt/network-probe, write .env from .env.probe.example, # docker compose -f compose.probe.yml up -d --build # Deploys after that: docker exec network-probe update # # Host networking on purpose: the probe must measure the machine's real link (not Docker's # bridge), serve its test endpoint on the LAN, and read the host's ARP table and gateway. name: network-probe services: probe: build: context: . dockerfile: container/Dockerfile image: network-monitor:latest container_name: network-probe restart: unless-stopped network_mode: host environment: ROLE: probe CONTAINER_NAME: network-probe PORT: ${PROBE_PORT:-8765} volumes: - runtime:/srv # source checkout, venv, update state - data:/data # last config from the hub, so it keeps testing while the hub is down - ./.env:/run/config/app.env:ro read_only: true tmpfs: - /tmp cap_drop: [ALL] security_opt: - no-new-privileges:true mem_limit: 192m logging: driver: json-file options: max-size: 10m max-file: "3" volumes: runtime: data: