fix(ha-diag-agent): remove host port mapping for 8087

Port 8087 conflicted with zigbee2mqtt on piha (8087:8080 mapping active
for 7+ days), preventing ha-diag-agent from starting.

Grep across the full repo confirms no external consumer (no nginx/npm
proxy, no Prometheus scrape, no control-plane reference) uses this port.
The Docker healthcheck runs inside the container network namespace and
does not require a host-side mapping. Internal FastAPI binding on 8087
is unchanged.

Removed: ports section from docker-compose.yml and service.yaml.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Oskar Kapala 2026-06-11 19:46:28 +02:00
parent a0bfd96870
commit d7e0d3162f
2 changed files with 0 additions and 6 deletions

View file

@ -7,9 +7,6 @@ services:
env_file: env_file:
- /opt/homelab/config/ha-diag-agent/.env - /opt/homelab/config/ha-diag-agent/.env
ports:
- "8087:8087"
volumes: volumes:
# Events dir: host path includes node name; inside container always /events # Events dir: host path includes node name; inside container always /events
- /opt/homelab/events/${NODE_NAME:-ha-diag}:/events - /opt/homelab/events/${NODE_NAME:-ha-diag}:/events

View file

@ -8,9 +8,6 @@ service:
dependencies: dependencies:
- homeassistant - homeassistant
ports:
- 8087
healthcheck: healthcheck:
type: http type: http
path: /health path: /health