From 4d90b0cf418820a082a980d3c2faf2f3eb801404 Mon Sep 17 00:00:00 2001 From: Meatballs1 Date: Tue, 19 Mar 2024 21:40:47 +0000 Subject: [PATCH] Use relative paths to work in docker and outside --- Dockerfile | 2 +- README.md | 4 ++-- compose.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 59f3582..7606fb7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/README.md b/README.md index 06fc69b..89b63f3 100644 --- a/README.md +++ b/README.md @@ -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" diff --git a/compose.yaml b/compose.yaml index 270ec8a..fc4e35b 100644 --- a/compose.yaml +++ b/compose.yaml @@ -4,4 +4,4 @@ services: build: . restart: on-failure volumes: - - ./config:/config + - ./config:/app/config