Jafner.net/homelab/stacks/home-assistant/docker-compose.yml

67 lines
1.9 KiB
YAML

services:
home-assistant:
image: lscr.io/linuxserver/homeassistant:latest
container_name: home-assistant_home-assistant
environment:
PUID: "1001"
PGID: "1001"
TZ: "America/Los_Angeles"
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:latest
container_name: home-assistant_wyze-bridge
networks:
- web
environment:
WB_IP: "192.168.1.23"
WB_RTSP_URL: "rtsp://192.168.1.23:18554/"
WB_RTMP_URL: "rtmp://192.168.1.23:11935/"
WB_HLS_URL: "http://192.168.1.23:19090/"
WB_WEBRTC_URL: "http://192.168.1.23:19091/"
env_file:
- path: ./wyze-bridge.secrets
required: true
ports:
- 11935:1935 # RTMP
- 18554:8554 # RTSP
- 19090:8888 # HLS
- 19091:8889 # WebRTC
- 19092:8189/udp # WebRTC/ICE
volumes:
- type: tmpfs
target: /tmp/docker-wyze
tmpfs:
size: 4000000000
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
- traefik.http.services.wyze-bridge.loadbalancer.server.port=5000
networks:
web:
external: true
home-assistant: