homelab/fighter/config/home-assistant/docker-compose.yml
Joey Hafner e2a79025bf
All checks were successful
Deploy to Fighter / Deploy (push) Successful in 7s
Deploy to Fighter / Notify (push) Successful in 1s
Add traefik labels to Wyze bridge
2024-02-27 23:15:49 -08:00

56 lines
1.5 KiB
YAML

version: '3.9'
services:
home-assistant:
image: lscr.io/linuxserver/homeassistant:latest
container_name: home-assistant_home-assistant
env_file:
- path: home-assistant.env
required: true
networks:
- web
- home-assistant
volumes:
- $DOCKER_DATA/home-assistant:/config
- /run/dbus:/run/dbus:ro
labels:
- traefik.http.routers.home-assistant.rule=Host(`homeassistant.jafner.net`)
- traefik.http.routers.home-assistant.tls.certresolver=lets-encrypt
mosquitto:
image: eclipse-mosquitto:latest
container_name: home-assistant_mosquitto
networks:
- home-assistant
volumes:
- ./mosquitto.conf:/mosquitto/config/mosquitto.conf
- ./mosquitto.passwd:/mosquitto/config/mosquitto.passwd
- $DOCKER_DATA/mosquitto:/mosquitto/data
ports:
- 12883:1883
- 19001:9001
wyze-bridge:
image: mrlt8/wyze-bridge
container_name: home-assistant_wyze-bridge
networks:
- web
env_file:
- path: ./wyze-bridge.env
required: true
- path: wyze-bridge_secrets.env
required: false
ports:
- 11935:1935 # RTMP
- 18554:8554 # RTSP
- 19090:8888 # HLS
- 19091:8889 # WebRTC
- 19092:8189/udp # WebRTC/ICE
labels:
- traefik.http.routers.wyze-bridge.rule=Host(`wyze.homeassistant.jafner.net`)
- traefik.http.routers.wyze-bridge.tls.certresolver=lets-encrypt
- traefik.http.routers.wyze-bridge.middlewares=lan-only@file
networks:
web:
external: true
home-assistant: