Adding home assistant. hopefully.

This commit is contained in:
Colin Diem
2021-04-15 23:43:14 -04:00
parent 5346fbfbba
commit a2447f321f
3 changed files with 24 additions and 1 deletions

View File

@@ -4,6 +4,8 @@ services:
image: homeassistant/home-assistant:stable
container_name: homeassistant
restart: unless-stopped
expose:
- '8123'
volumes:
- /etc/localtime:/etc/localtime:ro
- ./config:/config

View File

@@ -88,6 +88,23 @@ server {
error_log /var/log/nginx/nextcloud-error.log error;
}
# HomeAssistant config
server {
listen 80;
listen 443;
server_name ha.colindiem.com;
ssl_certificate /etc/ssl/certs/nginx/ha.crt;
ssl_certificate_key /etc/ssl/certs/nginx/ha.key;
location / {
include /etc/nginx/includes/proxy.conf;
proxy_pass http://homeassistant:8123;
}
access_log /var/log/nginx/ha-access.log;
error_log /var/log/nginx/ha-error.log;
}
# Default
server {
listen 80 default_server;

View File

@@ -8,6 +8,7 @@ services:
- bitwarden
- gitea
- motioneye
- homeassistant
ports:
- 80:80
- 443:443
@@ -24,4 +25,7 @@ networks:
name: gitea
motioneye:
external:
name: motioneye
name: motioneye
homeassistant:
external:
name: homeassistant