-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
97 lines (86 loc) · 2.27 KB
/
docker-compose.yml
File metadata and controls
97 lines (86 loc) · 2.27 KB
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
95
96
97
# based on:
# https://github.com/renemarc/home-assistant-config
version: '3'
services:
# @TODO
# add zwavejs2mqtt
# https://zwave-js.github.io/zwavejs2mqtt/#/getting-started/quick-start?id=minimum-settings
certbot:
container_name: certbot
image: certbot/certbot:latest
volumes:
- ./certbot/www:/var/www/certbot:rw
- ./certbot/conf:/etc/letsencrypt:rw
nginx:
container_name: nginx
image: nginx:latest
ports:
- 80:80
- 443:443
restart: unless-stopped
environment:
NGINX_DOMAIN: ${NGINX_DOMAIN:?error}
NGINX_PROXY_URL: ${NGINX_PROXY_URL:?error}
volumes:
- ./nginx/templates:/etc/nginx/templates:ro
- ./certbot/www:/var/www/certbot:ro
- ./certbot/conf:/etc/nginx/ssl:ro
depends_on:
- certbot
mqtt:
container_name: mosquitto
image: toke/mosquitto:latest
restart: unless-stopped
ports:
- 1883:1883
- 9001:9001
volumes:
- ./mqtt/mosquitto.conf
mariadb:
container_name: mariadb
image: bianjp/mariadb-alpine:latest
restart: unless-stopped
ports:
- "3306:3306/tcp"
volumes:
- database-data:/var/lib/mysql
environment:
TZ: ${TZ}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:?error}
MYSQL_DATABASE: ${MYSQL_DATABASE:?error}
MYSQL_USER: ${MYSQL_USER:?error}
MYSQL_PASSWORD: ${MYSQL_PASSWORD:?error}
hass:
container_name: hass
image: homeassistant/home-assistant:latest
ports:
- 8123:8123
volumes:
- ./homeassistant/config:/config
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
network_mode: host # HASS Requirement
depends_on:
- mqtt
- mariadb
- nginx
appdaemon:
container_name: appdaemon
image: acockburn/appdaemon:latest
restart: unless-stopped
environment:
APP_DAEMON_TOKEN: ${APP_DAEMON_TOKEN:?error}
APP_DAEMON_LONGITUDE: ${APP_DAEMON_LONGITUDE:?error}
APP_DAEMON_LATITUDE: ${APP_DAEMON_LATITUDE:?error}
APP_DAEMON_ELEVATION: ${APP_DAEMON_ELEVATION:?error}
APP_DAEMON_TZ: ${TZ:?error}
TIBBER_TOKEN: ${TIBBER_TOKEN:?error}
ports:
- 5050:5050
volumes:
- ./appdaemon/config:/conf
depends_on:
- hass
- mqtt
volumes:
database-data: