From 8d77fc2cb5a36ee8a26ba11d0895a169d2ee7ea0 Mon Sep 17 00:00:00 2001 From: sascha Date: Fri, 31 Jul 2026 09:19:36 +0200 Subject: [PATCH] fix: run collector without remote Docker build --- compose.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/compose.yaml b/compose.yaml index 96ab331..97effa9 100644 --- a/compose.yaml +++ b/compose.yaml @@ -1,8 +1,14 @@ services: home-monitor: - build: . + image: python:3.13-slim container_name: home-monitor restart: unless-stopped + working_dir: /app + command: ["/bin/sh", "-c", "pip install --disable-pip-version-check -r /app/requirements.txt && exec python -u /app/collector.py"] + volumes: + - ./collector.py:/app/collector.py:ro + - ./requirements.txt:/app/requirements.txt:ro + - /app-config/home-monitoring/pip-cache:/root/.cache/pip environment: TZ: Europe/Berlin MQTT_HOST: 10.10.1.1