Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Homeassistant duplicati portainer ssl #14

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .templates/duplicati/service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
duplicati:
container_name: duplicati
restart: unless-stopped
image: linuxserver/duplicati
network_mode: host
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Rome
ports:
- 8200:8200
volumes:
- /:/source
- ./volumes/duplicati:/config
- /etc/localtime:/etc/localtime:ro

14 changes: 14 additions & 0 deletions .templates/esphome/service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
esphome:
container_name: esphome
network_mode: host
restart: unless-stopped
environment:
- HOME = "/"
image: esphome/esphome-armv7:latest
ports:
- "6052:6052"
- "6123:6123"
volumes:
- ./volumes/esphome:/config:rw
command: config/ dashboard

11 changes: 11 additions & 0 deletions .templates/hass-configurator/service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
hassconfig:
container_name: HASS-Configurator
restart: unless-stopped
image: marthoc/hass-configurator:latest
volumes:
- ./volumes/hassio/homeassistant:/hass-config
- ./volumes/hass-configurator:/config
- /etc/localtime:/etc/localtime:ro
ports:
- "3218:3218"

17 changes: 17 additions & 0 deletions .templates/hass-configurator/settings.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"LISTENIP": "0.0.0.0",
"LISTENPORT": 3218,
"BASEPATH": "/hass-config",
"SSL_CERTIFICATE": null,
"SSL_KEY": null,
"HASS_API": "http://192.168.1.100:8123/api/",
"HASS_API_PASSWORD": "passwordforHASS",
"CREDENTIALS": "admin:password",
"ALLOWED_NETWORKS": [],
"BANNED_IPS": [],
"BANLIMIT": 0,
"IGNORE_PATTERN": [".*", "*.log", "*.db"],
"DIRSFIRST": true,
"SESAME": null,
"VERIFY_HOSTNAME": null
}
9 changes: 9 additions & 0 deletions .templates/homeassistant/service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
homeassistant:
container_name: home-assistant
image: homeassistant/raspberrypi4-homeassistant
volumes:
- ./volumes/homeassistant:/config
environment:
- TZ=Europe/Rome
restart: always
network_mode: host
9 changes: 9 additions & 0 deletions .templates/monitor/services.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
monitor:
container_name: Monitor
network_mode: host
privileged: true
restart: unless-stopped
image: mashupmill/presence-monitor:latest
volumes:
- ./volumes/monitor:/config
- /etc/localtime:/etc/localtime:ro
4 changes: 2 additions & 2 deletions .templates/mosquitto/service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
restart: unless-stopped
user: "1883"
ports:
- 1883:1883
- 9001:9001
- '1883:1883'
- '9001:9001'
volumes:
- ./volumes/mosquitto/data:/mosquitto/data
- ./volumes/mosquitto/log:/mosquitto/log
Expand Down
8 changes: 7 additions & 1 deletion .templates/portainer/service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
image: portainer/portainer
restart: unless-stopped
ports:
- 9000:9000
# - 9000:9000
- 9443:9000
volumes:
- /etc/0_scripts:/certs
- /var/run/docker.sock:/var/run/docker.sock
- ./volumes/portainer/data:/data
command:
--ssl
--sslcert /certs/portainer.crt
--sslkey /certs/portainer.key
23 changes: 23 additions & 0 deletions .templates/valetudomap/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"mqtt": {
"identifier": "rockrobo",
"topicPrefix": "valetudo",
"autoconfPrefix": "homeassistant",
"broker_url": "mqtt://user:[email protected]",
"caPath": "",
"mapSettings": {
"drawPath": true,
"drawCharger": true,
"drawRobot": true,
"border": 2,
"scale": 4
},
"mapDataTopic": "valetudo/rockrobo/map_data",
"minMillisecondsBetweenMapUpdates": 10000,
"publishMapImage": true
},
"webserver": {
"enabled": false,
"port": 3000
}
}
9 changes: 9 additions & 0 deletions .templates/valetudomap/service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
valetudomap:
container_name: ValetudoMap
restart: unless-stopped
image: dmkif/icantbelieveitsnotvaletudo:latest-arm
depends_on:
- "mosquitto"
volumes:
- ./volumes/valetudomap/config.json:/app/config.json

6 changes: 4 additions & 2 deletions menu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ declare -A cont_array=(
[nodered]="Node-RED"
[influxdb]="InfluxDB"
[telegraf]="Telegraf (Requires InfluxDB and Mosquitto)"
[duplicati]="duplicati"
[homeassistant]="homeassistant"
[grafana]="Grafana"
[mosquitto]="Eclipse-Mosquitto"
[postgres]="Postgres"
Expand All @@ -30,7 +32,7 @@ declare -A cont_array=(
[python]="Python 3"

)
declare -a armhf_keys=("portainer" "nodered" "influxdb" "grafana" "mosquitto" "telegraf" "mariadb" "postgres"
declare -a armhf_keys=("portainer" "nodered" "influxdb" "grafana" "mosquitto" "telegraf" "duplicati" "homeassistant" "mariadb" "postgres"
"adminer" "openhab" "zigbee2mqtt" "pihole" "plex" "tasmoadmin" "rtl_433" "espruinohub"
"motioneye" "webthings_gateway" "blynk_server" "nextcloud" "diyhue" "homebridge" "python")

Expand Down Expand Up @@ -406,7 +408,7 @@ case $mainmenu_selection in
"tinker" " " \
3>&1 1>&2 2>&3)
if [ -n "$hassio_machine" ]; then
curl -sL https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh | sudo bash -s -- -m $hassio_machine
curl -sL https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh | sudo bash -s -- -d ~/IOTstack/volumes/hassio -m $hassio_machine
else
echo "no selection"
exit
Expand Down