Big progress dump
This commit is contained in:
91
homeautomation/compose.yml
Normal file
91
homeautomation/compose.yml
Normal file
@@ -0,0 +1,91 @@
|
||||
services:
|
||||
|
||||
homeassistant:
|
||||
image: ghcr.io/home-assistant/home-assistant:stable
|
||||
container_name: homeassistant
|
||||
restart: unless-stopped
|
||||
privileged: true
|
||||
# Was needed for someting.. but dont remember. Deactivated for now.
|
||||
# network_mode: host # Discovery (mDNS/Bluetooth) requires this
|
||||
environment:
|
||||
- TZ=America/Toronto
|
||||
volumes:
|
||||
- /mnt/HoardingCow_docker_data/Home_Assistant:/config:rw
|
||||
networks:
|
||||
- traefik-net
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
|
||||
- "traefik.http.routers.hass-http.rule=Host(`home.lazyworkhorse.net`)"
|
||||
- "traefik.http.routers.hass-http.entrypoints=web"
|
||||
- "traefik.http.routers.hass-http.middlewares=redirect-to-https"
|
||||
|
||||
- "traefik.http.routers.hass-https.rule=Host(`home.lazyworkhorse.net`)"
|
||||
- "traefik.http.routers.hass-https.entrypoints=websecure"
|
||||
- "traefik.http.routers.hass-https.tls.certresolver=njalla"
|
||||
|
||||
- "traefik.http.services.hass.loadbalancer.server.port=8123"
|
||||
- "traefik.http.services.hass.loadbalancer.server.scheme=http"
|
||||
# Trusted proxy defined in configuration.yml
|
||||
|
||||
mosquitto:
|
||||
image: eclipse-mosquitto
|
||||
volumes:
|
||||
- /mnt/HoardingCow_docker_data/Mosquitto:/mosquitto
|
||||
networks:
|
||||
- traefik-net
|
||||
# ports:
|
||||
# - 1883:1883
|
||||
# - 9001:9001
|
||||
|
||||
hydroqc2mqtt:
|
||||
image: registry.gitlab.com/hydroqc/hydroqc2mqtt:1.3.0
|
||||
restart: always
|
||||
networks:
|
||||
- traefik-net
|
||||
environment:
|
||||
MQTT_USERNAME: hass
|
||||
MQTT_PASSWORD: ${MQTT_PASSWORD}
|
||||
MQTT_HOST: 192.168.1.3
|
||||
MQTT_PORT: 1883
|
||||
HQ2M_CONTRACTS_0_NAME: maison
|
||||
HQ2M_CONTRACTS_0_USERNAME: thierrypouplier@gmail.com
|
||||
HQ2M_CONTRACTS_0_PASSWORD: ${HQ2M_CONTRACTS_0_PASSWORD}
|
||||
HQ2M_CONTRACTS_0_CUSTOMER: ${HQ2M_CONTRACTS_0_CUSTOMER}
|
||||
HQ2M_CONTRACTS_0_ACCOUNT: ${HQ2M_CONTRACTS_0_ACCOUNT}
|
||||
HQ2M_CONTRACTS_0_CONTRACT: ${HQ2M_CONTRACTS_0_CONTRACT}
|
||||
HQ2M_CONTRACTS_0_RATE: 'D'
|
||||
HQ2M_CONTRACTS_0_RATE_OPTION: 'NONE'
|
||||
HQ2M_CONTRACTS_0_SYNC_HOURLY_CONSUMPTION_ENABLED: "true"
|
||||
HQ2M_CONTRACTS_0_HOME_ASSISTANT_WEBSOCKET_URL: http://homeassistant:8123/api/websocket
|
||||
HQ2M_CONTRACTS_0_HOME_ASSISTANT_TOKEN: ${HQ2M_CONTRACTS_0_HOME_ASSISTANT_TOKEN}
|
||||
|
||||
# grocy:
|
||||
# entrypoint:
|
||||
# - /init
|
||||
# environment:
|
||||
# - PUID=1000
|
||||
# - PGID=1000
|
||||
# - TZ=America/Toronto
|
||||
# image: lscr.io/linuxserver/grocy
|
||||
# ports:
|
||||
# - 9283:80/tcp
|
||||
# restart: unless-stopped
|
||||
# volumes:
|
||||
# - /mnt/HoardingCow_docker_data/Grocy/config:/config:rw
|
||||
|
||||
# node-red:
|
||||
# image: nodered/node-red:latest
|
||||
# environment:
|
||||
# - NODE_RED_UID=1000
|
||||
# - NODE_RED_GID=1000
|
||||
# - TZ=UTC
|
||||
# ports:
|
||||
# - "1880:1880"
|
||||
# volumes:
|
||||
# - /mnt/HoardingCow_docker_data/Node-Red/data:/data
|
||||
# restart: unless-stopped
|
||||
|
||||
networks:
|
||||
traefik-net:
|
||||
external: true
|
||||
Reference in New Issue
Block a user