Merge pull request #24 from Meatballs1/fix_paths
Use relative paths to work in docker and outside
This commit is contained in:
@@ -13,4 +13,4 @@ RUN apt-get update && \
|
|||||||
COPY hc2mqtt hc-login HCDevice.py HCSocket.py HCxml2json.py ./
|
COPY hc2mqtt hc-login HCDevice.py HCSocket.py HCxml2json.py ./
|
||||||
|
|
||||||
ENTRYPOINT ["python3"]
|
ENTRYPOINT ["python3"]
|
||||||
CMD ["hc2mqtt", "--config", "/config/config.ini"]
|
CMD ["hc2mqtt", "--config", "./config/config.ini"]
|
||||||
|
|||||||
@@ -65,10 +65,10 @@ your mDNS or DNS server resolves the names correctly.
|
|||||||
|
|
||||||
## Home Connect to MQTT
|
## 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_host = "localhost"
|
||||||
mqtt_username = "mqtt"
|
mqtt_username = "mqtt"
|
||||||
mqtt_password = "password"
|
mqtt_password = "password"
|
||||||
|
|||||||
@@ -4,4 +4,4 @@ services:
|
|||||||
build: .
|
build: .
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
volumes:
|
volumes:
|
||||||
- ./config:/config
|
- ./config:/app/config
|
||||||
|
|||||||
Reference in New Issue
Block a user