forked from blaineventurine/home-automation-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.smarthome.yml
executable file
·94 lines (90 loc) · 2.98 KB
/
docker-compose.smarthome.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
version: "3.7"
services:
rhasspy:
container_name: rhasspy
image: synesthesiam/rhasspy-server:latest
volumes:
- ${USERDIR}/rhasspy/profiles:/profiles
devices:
- /dev/snd:/dev/snd
ports:
- "12101:12101"
command: --profile en --user-profiles /profiles
marytts:
container_name: marytts
image: synesthesiam/marytts:5.2
restart: unless-stopped
ports:
- "59125:59125"
# nodered:
# container_name: node-red
# restart: always
# image: nodered/node-red-docker:latest
# depends_on:
# - "homeassistant"
# user: root
# volumes:
# - ${USERDIR}/node-red-1/user:/data
# - /etc/localtime:/etc/localtime:ro
# ports:
# - "1880:1880"
homeassistant:
container_name: home-assistant
restart: always
image: homeassistant/home-assistant:latest
depends_on:
- "influxdb"
- "traefik"
volumes:
- ${USERDIR}/home-assistant:/config
- /etc/localtime:/etc/localtime:ro
- ${USERDIR}/home-assistant/media:/media
#network_mode: host
privileged: true
# ports:
# - 8123:8123
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
networks:
- traefik_proxy
- default
labels:
- "traefik.enable=true"
- "traefik.backend=homeassistant"
- "traefik.frontend.rule=Host:ha.${DOMAINNAME}"
- "traefik.port=8123"
# - "traefik.protocol=https"
- "traefik.docker.network=traefik_proxy"
- "traefik.frontend.headers.SSLRedirect=true"
- "traefik.frontend.headers.STSSeconds=315360000"
- "traefik.frontend.headers.browserXSSFilter=true"
- "traefik.frontend.headers.contentTypeNosniff=true"
- "traefik.frontend.headers.forceSTSHeader=true"
- "traefik.frontend.headers.SSLHost=${DOMAINNAME}.com"
- "traefik.frontend.headers.STSIncludeSubdomains=true"
- "traefik.frontend.headers.STSPreload=true"
- "traefik.frontend.headers.frameDeny=true"
- "traefik.frontend.headers.customFrameOptionsValue=SAMEORIGIN"
- "traefik.frontend.headers.contentSecurityPolicy=upgrade-insecure-requests"
- "traefik.frontend.headers.customResponseHeaders=X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex"
- com.centurylinklabs.watchtower.enable="false
# mosquitto:
# container_name: mosquitto
# restart: always
# image: eclipse-mosquitto:latest
# volumes:
# - ${USERDIR}/mosquitto/config/:/mosquitto/config/
# - ${USERDIR}/mosquitto/log:/mosquitto/log
# - ${USERDIR}/mosquitto/data:/mosquitto/data
# - /etc/localtime:/etc/localtime:ro
# environment:
# - MOSQUITTO_USERNAME=${MOSQUITTO_USERNAME}
# - MOSQUITTO_PASSWORD=${MOSQUITTO_PASSWORD}
# ports:
# - "1883:1883"
# - "9001:9001"
# # - 8883:8883
# networks:
# - default