my raspberry pi local services
Steps and guide to deploy all services on Raspberry Pi 4b
.
Go to Download page and install OS on memory card.
Edit /boot/firmware/config.txt
file adding dtoverlay
.
# /boot/firmware/config.txt
#...
dtoverlay=disable-wifi
dtoverlay=disable-bt
- Create ssh key
cd .ssh/
ssh-keygen
- Complete steps
- Get public key
cat <ssh_key_name>.pub
Add ken on Github SSH Keys
git config --global user.name ... git config --global user.email ...
Create .ssh/config
file with content like:
Host github.com
Hostname ssh.github.com
Port 443
AddKeysToAgent yes
PreferredAuthentications publickey
IdentityFile ~/.ssh/<ssh_key_name>
Host gitlab.com
Hostname gitlab.com
AddKeysToAgent yes
PreferredAuthentications publickey
IdentityFile ~/.ssh/<ssh_key_name>
Add alias section on .gitconfig
file.
[alias]
cb = "rev-parse --abbrev-ref HEAD"
cm = "commit -am"
po = "push origin"
cfg = "config --global -l"
st = "status -sb"
ll = "log --oneline"
lc = "log -1 HEAD --stat"
dv = "difftool -t vimdiff -y"
search = "!git rev-list --all | xargs git grep -F"
rv = "remote -v"
Follow steps of Docker install Guide
Prevent use sudo
for each docker
command
sudo usermod -aG docker pi
Go to home dir and run
docker run -it -v ~/.config/rclone:/config/rclone rclone/rclone config
On finish, update file permission for docker
sudo chmod 0644 .config/rclone/rclone.conf
-
Credentials: link
-
Info: video
git clone ...
cd raspi-services
Create .env
file with content like:
WEBPASSWORD=supersecret
Start containers
docker-compose up -d