Adding home assistant. hopefully.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user