1
0
Fork 0

Setup hadashboard

This commit is contained in:
Andrew Tomaka 2018-06-01 10:02:40 -04:00
parent 6f1d8edf0c
commit 70cfc5b6d0
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE
2 changed files with 30 additions and 4 deletions

View file

@ -6,10 +6,10 @@ deploy: validate files
files:
scp ./nginx.tmpl 192.168.1.20:/home/atomaka
ssh 192.168.1.20 "sudo mv /home/atomaka/nginx.tmpl /mnt/data/docker/nginx/templates/"
scp -r ./htpasswd 192.168.1.20:/home/atomaka
ssh 192.168.1.20 "sudo cp -f /home/atomaka/htpasswd/* /mnt/data/docker/nginx/htpasswd/ && rm -rf /home/atomaka/htpasswd"
scp ./nginx.template.conf 192.168.1.20:/home/atomaka
ssh 192.168.1.20 "sudo mv /home/atomaka/nginx.template.conf /mnt/data/docker/haproxy/"
scp ./nginx.template.conf 192.168.1.20:/home/atomaka
ssh 192.168.1.20 "sudo mv /home/atomaka/nginx.template.conf /mnt/data/docker/hadashboardproxy/"
network:
ssh 192.168.1.20 "docker network create nginx-proxy"

View file

@ -103,12 +103,12 @@ services:
LETSENCRYPT_EMAIL: me@atomaka.com
networks:
- proxy
sabnzdb:
sabnzbd:
image: linuxserver/sabnzbd
container_name: sabnzbd
restart: always
volumes:
- "/mnt/data/docker/sabnzdb/config:/config"
- "/mnt/data/docker/sabnzbd/config:/config"
- "/mnt/data/downloads:/data"
- "/etc/localtime:/etc/localtime:ro"
environment:
@ -193,6 +193,32 @@ services:
- "/mnt/data/docker/ha/config:/config"
devices:
- '/dev/zwave:/dev/zwave:rwm'
hadashboardproxy:
image: instal/nginx-proxy-pass-dockerize
container_name: hadashboardproxy
restart: always
volumes:
- /mnt/data/docker/hadashboardproxy/nginx.template.conf:/app/nginx.template.conf:ro
environment:
NGINX_UPSTREAM_SERVER: 192.168.1.20:5050
NGINX_UPSTREAM_KEEPALIVE: 0
NGINX_SERVER_PORT: 80
VIRTUAL_HOST: dashboard.atomaka.com
LETSENCRYPT_HOST: dashboard.atomaka.com
LETSENCRYPT_EMAIL: me@atomaka.com
networks:
- proxy
hadashboard:
image: acockburn/appdaemon:latest
container_name: hadashboard
restart: always
ports:
- 5050:5050
environment:
PUID: 0
PGID: 0
volumes:
- "/mnt/data/docker/ha/config/dashboards:/conf"
portainer:
image: portainer/portainer
container_name: portainer