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
|
2024-02-26 12:28:57 -08:00
|
|
|
- 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
|
2024-02-26 12:28:57 -08:00
|
|
|
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
|
2024-02-26 12:45:42 -08:00
|
|
|
- ./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:
|
2024-02-26 12:28:57 -08:00
|
|
|
external: true
|
|
|
|
home-assistant:
|