Adding home assistant. hopefully.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -8,6 +8,7 @@ services:
|
||||
- bitwarden
|
||||
- gitea
|
||||
- motioneye
|
||||
- homeassistant
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
@@ -25,3 +26,6 @@ networks:
|
||||
motioneye:
|
||||
external:
|
||||
name: motioneye
|
||||
homeassistant:
|
||||
external:
|
||||
name: homeassistant
|
||||
Reference in New Issue
Block a user