services: healthcheck: build: . image: healthcheck-container container_name: healthcheck restart: unless-stopped # Host networking exposes the Wi-Fi interface to the container. The app # listens on port 9999 on the host directly, so no `ports:` mapping is used. network_mode: host cap_add: - NET_ADMIN volumes: - healthcheck-data:/data environment: DEVICE_NAME: pi-livingroom WIFI_INTERFACE: wlan0 WIFI_SCAN_INTERVAL: "60" # MQTT_HOST: homeassistant.local # MQTT_USERNAME: mqtt # MQTT_PASSWORD: secret volumes: healthcheck-data: