Created
February 8, 2021 23:20
-
-
Save HeyItsGilbert/2b67ba81b5427bf923d5d270d7171a65 to your computer and use it in GitHub Desktop.
HA config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
homeassistant: | |
container_name: hass-core | |
restart: unless-stopped | |
image: homeassistant/home-assistant:0.113.3 | |
#network_mode: host | |
networks: | |
- t2_proxy | |
- iot | |
ports: | |
- "8123:8123" | |
# devices: | |
# - /dev/ttyUSB0:/dev/ttyUSB0 | |
# - /dev/ttyUSB1:/dev/ttyUSB1 | |
# - /dev/ttyACM0:/dev/ttyACM0 | |
privileged: true | |
volumes: | |
- $USERDIR/docker/homeassistant:/config | |
- /etc/localtime:/etc/localtime:ro | |
#- /media/ssd/motioneye:/media/motioneye | |
environment: | |
- PUID=$PUID | |
- PGID=$PGID | |
- TZ=$TZ | |
labels: | |
- "traefik.enable=true" | |
## HTTP Routers | |
- "traefik.http.routers.ha-rtr.entrypoints=https" | |
- "traefik.http.routers.ha-rtr.rule=Host(`ha.$DOMAINNAME`)" | |
## Middlewares | |
- "traefik.http.routers.ha-rtr.middlewares=chain-no-auth@file" | |
## HTTP Services | |
- "traefik.http.routers.ha-rtr.service=ha-svc" | |
#- "traefik.http.services.ha-svc.loadbalancer.server.port=8123" | |
- "traefik.http.services.ha-svc.loadbalancer.server.url=http://192.168.1.6:8123/" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment