Skip to content

tirtadji-com/Raspi-Docker-for-HA-Install

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This installation will help you install

RaspiOS with NGINX, Letsencrypt, Glance with Docker Portainer, Watch Tower, InfluxDB, Grafana, MotionEye, TasmoAdmin, MQTT, and Home-Assistant

Requirement:

  • Rasberry Pi 4
  • microSD
  • RaspiOS
  • Raspbian Imager
  • Your public ssh keys (please google it on how to create one for you)

Installation:

step 1: Burn your microSD using Raspberry Pi Imager
step 2: Remove your microSD and reinsert to your PC/notebook
step 3: Now go to your microSD directory /boot and be sure to type using terminal touch ssh (we are going to install HA headless)
step 4: Boot your microSD on Raspberry Pi and find the local IP
step 5: Now SSH to your RPI by using ssh pi@local-ip password raspberry
step 6: Update and Reboot once

# Run this first and reboot your system
sudo apt-get update && sudo apt-get dist-upgrade -y && sudo apt autoremove -y && sudo reboot now

step 7: Now SSH back to your RPI by using ssh pi@local-ip password raspberry
step 8: Once connected you need to sudo passwd and insert your root password (twice)
step 9: Then you need to change to ROOT by typing su and enter your root password
step 10: Now you will need to change directory to root by typin ~
step 11: Then execute the rest of the script

wget https://raw.githubusercontent.com/tirtadji-com/Raspi-Docker-for-HA-Install/main/install.sh

step 12: Now you will need to chmod and execute the scripts from your ROOT Directory

# Next you will need to chmod the files
chmod +x install.sh

# Execute the script
./install.sh

First WARNING

Remember after the installation and Reboot you will need your SSH key to login since your RPI is now enhanced and your password will not working anymore

After the installation complete you will connect to your RPI using ssh root@local-ip + your sshkey password

More Docker-Apps

If you want to install more docker application for your Home-Assistant then you will have to run each individual script inside docker directory accept for hass-install.sh
To install simply by cd /root/docker and type ./[docker-apps]-install.sh

Docker-Apps:

  • portainer running on port 9000
  • Grafana running on port 3000
  • ESP Home running on port 6052
  • InfluxDB running on port 8086
  • MotionEye running on port 8765
  • MQTT running on port 1883
  • TasmoAdmin running on port 9003
  • WatchTower

Non Docker-Apps:

  • Glaces running on port 61208
  • Home-Assistant on port 8123

Portainer

For those who never used Portainer please run this apps first, this will allow you to see your docker dashboard and allowing you to control your docker apps installed on your RPI. More information regarding portainer can be read at portainer.io

NGINX Installation

IF you did not setup NGINX on your first installation and would like to add it up you can run `./nginx.sh' from your root directory.

2nd WARNING

Before you run NGINX installation make sure you open your router port 80/443 and directed to your RPI-ip else you dont need to install NGINX

In order to setup correctly you will need to run this command from your /root/ directory as ROOT

About

A simple way in installing Home-Assistant on your Raspberry Pi 4.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages