foodotfiles/docker/homeautomation/docker-compose.toml

95 lines
2.9 KiB
TOML
Raw Normal View History

[services]
[services.home-assistant]
container_name = "home-assistant"
image = "homeassistant/home-assistant"
environment = ["TZ=Europe/Helsinki"]
devices = ["/dev/ttyACM0"]
volumes = [
"/docker/homeautomation/home-assistant:/config",
"/etc/localtime:/etc/localtime:ro",
]
restart = "unless-stopped"
networks = ["homeautomation", "postgres", "proxy"]
ports = ["8123:8123", "8300:8300"]
depends_on = ["mosquitto"]
labels = [
"traefik.enable=true",
2022-03-24 08:26:23 +00:00
"traefik.docker.network=proxy",
"traefik.http.routers.home-assistant-redirect.entrypoints=http",
"traefik.http.routers.home-assistant-redirect.rule=Host(`home.korhonen.cc`)",
"traefik.http.routers.home-assistant-redirect.middlewares=http2https@file",
"traefik.http.routers.home-assistant.entrypoints=https",
2022-03-24 08:26:23 +00:00
"traefik.http.routers.home-assistant.middlewares=secHeaders@file",
"traefik.http.routers.home-assistant.rule=Host(`home.korhonen.cc`)",
"traefik.http.routers.home-assistant.service=home-assistant",
"traefik.http.services.home-assistant.loadbalancer.server.port=8123",
]
[services.esphome]
container_name = "esphome"
image = "esphome/esphome"
volumes = ["/docker/homeautomation/esphome:/config"]
restart = "unless-stopped"
network_mode = "host"
[services.mosquitto]
container_name = "mosquitto"
image = "eclipse-mosquitto"
environment = ["TZ=Europe/Helsinki"]
ports = ["1883:1883"]
networks = ["homeautomation"]
volumes = [
"/docker/homeautomation/mosquitto:/mosquitto",
"/etc/localtime:/etc/localtime:ro",
]
restart = "unless-stopped"
[services.rhasspy]
container_name = "rhasspy"
image = "rhasspy/rhasspy"
command = "--profile en --user-profiles /profiles"
volumes = ["/docker/homeautomation/rhasspy:/profiles"]
environment = ["TZ=Europe/Helsinki"]
ports = ["12101:12101"]
networks = ["homeautomation"]
restart = "unless-stopped"
depends_on = ["home-assistant"]
devices = ["/dev/snd:/dev/snd"]
[services.node-red]
container_name = "node-red"
image = "nodered/node-red"
environment = ["TZ=Europe/Helsinki", "proxy"]
ports = ["1880:1880"]
networks = ["homeautomation", "proxy"]
volumes = [
"/docker/homeautomation/node-red:/data",
"/etc/localtime:/etc/localtime:ro",
]
restart = "unless-stopped"
depends_on = ["home-assistant"]
labels = [
"traefik.enable=true",
2022-03-24 08:26:23 +00:00
"traefik.docker.network=proxy",
"traefik.http.routers.node-red-redirect.entrypoints=http",
"traefik.http.routers.node-red-redirect.rule=Host(`node.korhonen.cc`)",
"traefik.http.routers.node-red-redirect.middlewares=http2https@file",
"traefik.http.routers.node-red.entrypoints=https",
"traefik.http.routers.node-red.rule=Host(`node.korhonen.cc`)",
2022-03-24 08:26:23 +00:00
"traefik.http.routers.node-red.middlewares=secHeaders@file",
"traefik.http.routers.node-red.service=node-red",
"traefik.http.services.node-red.loadbalancer.server.port=1880",
]
[networks]
[networks.homeautomation]
external = false
[networks.postgres]
external = true
[networks.proxy]
external = true