feat(homeassistant): Add Home Assistant
This commit is contained in:
@@ -33,6 +33,8 @@ services:
|
||||
volumes:
|
||||
- ./letsencrypt:/letsencrypt
|
||||
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
||||
extra_hosts:
|
||||
- host.docker.internal:172.17.0.1
|
||||
healthcheck:
|
||||
test: [ "CMD", "traefik", "healthcheck", "--ping" ]
|
||||
interval: 5s
|
||||
@@ -401,6 +403,41 @@ services:
|
||||
- homepage.widget.type=jellyfin
|
||||
- homepage.widget.url=http://jellyfin:8096/jellyfin
|
||||
- homepage.widget.key=${JELLYFIN_API_KEY}
|
||||
homeassistant:
|
||||
image: ghcr.io/home-assistant/home-assistant:stable
|
||||
container_name: homeassistant
|
||||
network_mode: host
|
||||
environment:
|
||||
- PUID=${USER_ID}
|
||||
- PGID=${GROUP_ID}
|
||||
- TZ=${TIMEZONE}
|
||||
volumes:
|
||||
- ./homeassistant:/config
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /run/dbus:/run/dbus:ro
|
||||
restart: always
|
||||
healthcheck:
|
||||
test: [ "CMD", "curl", "--fail", "http://127.0.0.1:8123" ]
|
||||
interval: 5s
|
||||
retries: 10
|
||||
privileged: true
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.homeassistant.rule=(Host(`${HOMEASSISTANT_HOSTNAME}`))
|
||||
- traefik.http.routers.homeassistant.tls=true
|
||||
- traefik.http.routers.homeassistant.tls.certresolver=myresolver
|
||||
- traefik.http.services.homeassistant.loadbalancer.server.port=8123
|
||||
- homepage.group=Apps
|
||||
- homepage.name=Home Assistant
|
||||
- homepage.icon=home-assistant.png
|
||||
- homepage.href=https://${HOMEASSISTANT_HOSTNAME}
|
||||
- homepage.description=Open source home automation that puts local control and privacy first
|
||||
- homepage.weight=3
|
||||
- homepage.widget.type=homeassistant
|
||||
- homepage.widget.url=https://${HOMEASSISTANT_HOSTNAME}
|
||||
- homepage.widget.key=${HOMEASSISTANT_ACCESS_TOKEN}
|
||||
profiles:
|
||||
- homeassistant
|
||||
homepage:
|
||||
image: ghcr.io/gethomepage/homepage:latest
|
||||
container_name: homepage
|
||||
|
||||
Reference in New Issue
Block a user