dotfiles/docker/homeautomation/docker-compose.yml

183 lines
5.3 KiB
YAML
Raw Normal View History

2020-02-16 14:44:37 +02:00
version: "3"
services:
home-assistant:
container_name: home-assistant
image: homeassistant/home-assistant
2020-02-10 00:31:05 +02:00
environment:
- TZ=Europe/Helsinki
volumes:
- /docker/homeautomation/home-assistant:/config
2020-02-04 17:23:04 +02:00
- /etc/localtime:/etc/localtime:ro
2020-10-17 11:53:27 +03:00
restart: unless-stopped
2020-02-13 21:24:50 +02:00
networks:
2020-12-06 11:36:01 +02:00
- homeautomation
- mariadb
2020-02-13 21:24:50 +02:00
- proxy
ports:
2020-02-16 14:44:37 +02:00
- "8123:8123"
depends_on:
- deconz
2020-02-18 15:24:40 +02:00
- mosquitto
2020-02-13 21:24:50 +02:00
labels:
2020-02-16 14:44:37 +02:00
- "traefik.enable=true"
2020-02-13 21:24:50 +02:00
2020-02-16 14:44:37 +02:00
- "traefik.http.routers.home-assistant-redirect.entrypoints=http"
2020-12-06 11:36:01 +02:00
- "traefik.http.routers.home-assistant-redirect.rule=Host(`home.korhonen.cc`)"
2020-02-16 14:44:37 +02:00
- "traefik.http.middlewares.http2https.redirectscheme.scheme=https"
- "traefik.http.routers.home-assistant-redirect.middlewares=http2https"
2020-02-13 21:24:50 +02:00
2020-02-16 14:44:37 +02:00
- "traefik.http.routers.home-assistant.entrypoints=https"
2020-12-06 11:36:01 +02:00
- "traefik.http.routers.home-assistant.rule=Host(`home.korhonen.cc`)"
2020-02-16 14:44:37 +02:00
- "traefik.http.routers.home-assistant.tls=true"
- "traefik.http.routers.home-assistant.tls.certresolver=http"
- "traefik.http.routers.home-assistant.service=home-assistant"
- "traefik.docker.network=proxy"
- "traefik.http.services.home-assistant.loadbalancer.server.port=8123"
deconz:
container_name: deconz
image: marthoc/deconz
environment:
- TZ=Europe/Helsinki
- DECONZ_WEB_PORT=8083
- DECONZ_WS_PORT=8084
- DECONZ_UPNP=0
- DECONZ_VNC_PORT=5901
- DECONZ_VNC_MODE=1
- DECONZ_VNC_PASSWORD=${DECONZ_VNC_PASSWORD}
- DEBUG_OTAU=1
network_mode: host
volumes:
2020-02-16 18:21:38 +02:00
- /docker/homeautomation/deconz/deconz:/root/.local/share/dresden-elektronik/deCONZ
- /docker/homeautomation/deconz/otau:/root/otau
- /etc/localtime:/etc/localtime:ro
2020-10-17 11:53:27 +03:00
restart: unless-stopped
devices:
- /dev/ttyACM0
2020-02-18 15:23:24 +02:00
mosquitto:
container_name: mosquitto
image: eclipse-mosquitto
environment:
- TZ=Europe/Helsinki
2020-02-18 15:28:18 +02:00
ports:
- "1883:1883"
2020-02-18 15:29:49 +02:00
networks:
2020-12-06 11:36:01 +02:00
- homeautomation
2020-02-18 15:23:24 +02:00
volumes:
- /docker/homeautomation/mosquitto:/mosquitto
- /etc/localtime:/etc/localtime:ro
2020-10-17 11:53:27 +03:00
restart: unless-stopped
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"
2020-12-06 11:36:01 +02:00
networks:
- homeautomation
2020-10-17 11:53:27 +03:00
restart: unless-stopped
depends_on:
- home-assistant
2020-12-06 11:36:01 +02:00
- opentts
2020-10-17 11:53:27 +03:00
devices:
- "/dev/snd:/dev/snd"
2020-02-18 15:23:24 +02:00
2020-12-06 11:36:01 +02:00
opentts:
image: synesthesiam/opentts
container_name: opentts
ports:
- 5500:5500
command: --marytts-url http://marytts:59125 --mozillatts-url http://mozillatts:5002
tty: true
networks:
- homeautomation
depends_on:
- marytts
- mozillatts
marytts:
image: synesthesiam/marytts:5.2
container_name: marytts
tty: true
networks:
- homeautomation
mozillatts:
image: synesthesiam/mozilla-tts
container_name: mozillatts
tty: true
networks:
- homeautomation
node-red:
container_name: node-red
image: nodered/node-red
2020-02-10 00:31:05 +02:00
environment:
- TZ=Europe/Helsinki
2020-02-13 21:24:50 +02:00
- proxy
ports:
2020-02-16 14:44:37 +02:00
- "1880:1880"
2020-12-06 11:36:01 +02:00
networks:
- homeautomation
volumes:
- /docker/homeautomation/node-red:/data
2020-02-04 17:23:04 +02:00
- /etc/localtime:/etc/localtime:ro
2020-10-17 11:53:27 +03:00
restart: unless-stopped
depends_on:
- home-assistant
2020-02-13 21:24:50 +02:00
labels:
2020-02-16 14:44:37 +02:00
- "traefik.enable=true"
2020-02-13 21:24:50 +02:00
2020-02-16 14:44:37 +02:00
- "traefik.http.routers.node-red-redirect.entrypoints=http"
2020-12-06 11:36:01 +02:00
- "traefik.http.routers.node-red-redirect.rule=Host(`node.korhonen.cc`)"
2020-02-16 14:44:37 +02:00
- "traefik.http.middlewares.http2https.redirectscheme.scheme=https"
- "traefik.http.routers.node-red-redirect.middlewares=http2https"
2020-02-13 21:24:50 +02:00
2020-02-16 14:44:37 +02:00
- "traefik.http.routers.node-red.entrypoints=https"
2020-12-06 11:36:01 +02:00
- "traefik.http.routers.node-red.rule=Host(`node.korhonen.cc`)"
2020-02-16 14:44:37 +02:00
- "traefik.http.routers.node-red.tls=true"
- "traefik.http.routers.node-red.tls.certresolver=http"
- "traefik.http.routers.node-red.service=node-red"
- "traefik.docker.network=proxy"
2020-07-12 11:29:58 +03:00
- "traefik.http.services.node-red.loadbalancer.server.port=1880"
2020-12-06 11:36:01 +02:00
gotify:
image: gotify/server
container_name: gotify
volumes:
- /docker/homeautomation/gotify:/app/data
environment:
- GOTIFY_DATABASE_DIALECT=mysql
- GOTIFY_DATABASE_CONNECTION=gotify:gotify@tcp(mariadb:3306)/gotify?charset=utf8&parseTime=True&loc=Local
networks:
- proxy
- mariadb
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.gotify-redirect.entrypoints=http"
- "traefik.http.routers.gotify-redirect.rule=Host(`gotify.korhonen.cc`)"
- "traefik.http.middlewares.http2https.redirectscheme.scheme=https"
- "traefik.http.routers.gotify-redirect.middlewares=http2https"
- "traefik.http.routers.gotify.entrypoints=https"
- "traefik.http.routers.gotify.rule=Host(`gotify.korhonen.cc`)"
- "traefik.http.routers.gotify.tls=true"
- "traefik.http.routers.gotify.tls.certresolver=http"
- "traefik.http.routers.gotify.service=gotify"
- "traefik.docker.network=proxy"
- "traefik.http.services.gotify.loadbalancer.server.port=80"
2020-02-13 21:24:50 +02:00
networks:
2020-12-06 11:36:01 +02:00
homeautomation:
2020-02-13 21:24:50 +02:00
external: false
mariadb:
external: true
2020-02-13 21:24:50 +02:00
proxy:
external: true