Smarthome & tg2
This commit is contained in:
parent
82571bfd03
commit
83c819a9ac
|
@ -0,0 +1,39 @@
|
|||
services:
|
||||
hass:
|
||||
container_name: hass
|
||||
image: ghcr.io/home-assistant/home-assistant:stable
|
||||
volumes:
|
||||
- $DATA/hass:/config
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
networks:
|
||||
- smarthome
|
||||
- external
|
||||
restart: on-failure
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.hass.rule=Host(`hass.bhasher.com`)"
|
||||
- "traefik.http.routers.hass.entrypoints=internalsecure"
|
||||
- "traefik.http.services.hass.loadbalancer.server.port=8123"
|
||||
- "traefik.http.routers.hass.tls=true"
|
||||
- "traefik.http.routers.hass.tls.certresolver=http"
|
||||
|
||||
mosquitto:
|
||||
container_name: mosquitto
|
||||
image: eclipse-mosquitto:latest
|
||||
volumes:
|
||||
- $CONFIG/smarthome/mosquitto.conf:/mosquitto/config/mosquitto.conf:ro
|
||||
- $DATA/mosquitto/data:/mosquitto/data
|
||||
- $DATA/mosquitto/passwordfile:/mosquitto/passwordfile
|
||||
ports:
|
||||
- 1883:1883
|
||||
- 9001:9001
|
||||
networks:
|
||||
- smarthome
|
||||
- external
|
||||
restart: on-failure
|
||||
|
||||
networks:
|
||||
smarthome:
|
||||
external:
|
||||
external: true
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
services:
|
||||
tg2:
|
||||
container_name: tg2
|
||||
image: tg2:latest
|
|
@ -0,0 +1,3 @@
|
|||
listener 1883
|
||||
allow_anonymous false
|
||||
password_file /mosquitto/passwordfile
|
Loading…
Reference in New Issue