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 image: homeassistant/home-assistant:stable
container_name: homeassistant container_name: homeassistant
restart: unless-stopped restart: unless-stopped
expose:
- '8123'
volumes: volumes:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
- ./config:/config - ./config:/config

View File

@@ -88,6 +88,23 @@ server {
error_log /var/log/nginx/nextcloud-error.log error; 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 # Default
server { server {
listen 80 default_server; listen 80 default_server;

View File

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