dotfiles/docker/homeautomation/docker-compose.yml

137 lines
4.2 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
2020-12-06 12:52:08 +02:00
devices:
- /dev/ttyACM0
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
2021-01-09 13:41:25 +02:00
- postgres
2020-02-13 21:24:50 +02:00
- proxy
ports:
2020-02-16 14:44:37 +02:00
- "8123:8123"
depends_on:
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"
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
devices:
- "/dev/snd:/dev/snd"
2020-02-18 15:23:24 +02:00
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:
2021-01-09 13:41:25 +02:00
- GOTIFY_DATABASE_DIALECT=postgres
- GOTIFY_DATABASE_CONNECTION="host=postgres port=5432 user=gotify dbname=gotify password=${GOTIFY_PGPASS} sslmode=disable"
2020-12-06 11:36:01 +02:00
networks:
- proxy
2021-01-09 13:41:25 +02:00
- postgres
2020-12-06 11:36:01 +02:00
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
2021-01-09 13:41:25 +02:00
postgres:
external: true
2020-02-13 21:24:50 +02:00
proxy:
external: true