homelab/fighter/config/home-assistant/docker-compose.yml

33 lines
875 B
YAML
Raw Normal View History

2024-02-26 10:51:50 -08:00
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
2024-02-26 10:51:50 -08:00
volumes:
2024-02-26 11:41:12 -08:00
- $DOCKER_DATA/home-assistant:/config
2024-02-26 10:51:50 -08:00
labels:
- traefik.http.routers.home-assistant.rule=Host(`homeassistant.jafner.net`)
- traefik.http.routers.home-assistant.tls.certresolver=lets-encrypt
2024-02-26 11:41:12 -08:00
mosquitto:
image: eclipse-mosquitto:latest
container_name: home-assistant_mosquitto
networks:
- home-assistant
2024-02-26 11:41:12 -08:00
volumes:
2024-02-26 11:44:21 -08:00
- ./mosquitto.conf:/mosquitto/config/mosquitto.conf
- ./mosquitto.passwd:/mosquitto/config/mosquitto.passwd
2024-02-26 11:41:12 -08:00
- $DOCKER_DATA/mosquitto:/mosquitto/data
ports:
2024-02-26 12:17:05 -08:00
- 12883:1883
2024-02-26 12:15:26 -08:00
- 19001:9001
2024-02-26 10:51:50 -08:00
networks:
web:
external: true
home-assistant: