fix: run collector without remote Docker build
This commit is contained in:
parent
470a19f5d0
commit
8d77fc2cb5
1 changed files with 7 additions and 1 deletions
|
|
@ -1,8 +1,14 @@
|
||||||
services:
|
services:
|
||||||
home-monitor:
|
home-monitor:
|
||||||
build: .
|
image: python:3.13-slim
|
||||||
container_name: home-monitor
|
container_name: home-monitor
|
||||||
restart: unless-stopped
|
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:
|
environment:
|
||||||
TZ: Europe/Berlin
|
TZ: Europe/Berlin
|
||||||
MQTT_HOST: 10.10.1.1
|
MQTT_HOST: 10.10.1.1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue