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