Use relative paths to work in docker and outside

This commit is contained in:
Meatballs1
2024-03-19 21:40:47 +00:00
parent 250f6c3fb7
commit 4d90b0cf41
3 changed files with 4 additions and 4 deletions

View File

@@ -13,4 +13,4 @@ RUN apt-get update && \
COPY hc2mqtt hc-login HCDevice.py HCSocket.py HCxml2json.py ./
ENTRYPOINT ["python3"]
CMD ["hc2mqtt", "--config", "/config/config.ini"]
CMD ["hc2mqtt", "--config", "./config/config.ini"]

View File

@@ -65,10 +65,10 @@ your mDNS or DNS server resolves the names correctly.
## Home Connect to MQTT
Use the following config/config.ini example:
Use the following ./config/config.ini example:
```
devices_file = "/config/devices.json"
devices_file = "./config/devices.json"
mqtt_host = "localhost"
mqtt_username = "mqtt"
mqtt_password = "password"

View File

@@ -4,4 +4,4 @@ services:
build: .
restart: on-failure
volumes:
- ./config:/config
- ./config:/app/config