homelab/fighter/config/home-assistant/docker-compose.yml
Joey Hafner 149cd33984
All checks were successful
Deploy to Fighter / Deploy (push) Successful in 7s
Deploy to Fighter / Notify (push) Successful in 2s
Add mount for mosquitto.passwd file
Gitignore *.passwd files
2024-02-26 12:45:42 -08:00

33 lines
875 B
YAML

version: '3.9'
services:
home-assistant:
image: lscr.io/linuxserver/homeassistant:latest
container_name: home-assistant_home-assistant
env_file:
- home-assistant.env
networks:
- web
- home-assistant
volumes:
- $DOCKER_DATA/home-assistant:/config
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
networks:
web:
external: true
home-assistant: