467be18fc44d162b55591ded31567d9d04975640
homesrv01.dev.lan
Welcome to homesrv01.dev.lan git page.
OS
Currently hosted on a proxmox ubuntu container.
Distributor ID: Ubuntu
Description: Ubuntu 23.04
Release: 23.04
Codename: lunar
Kernel: 5.15.111-1-pve
# check ubuntu release
lsb_release -a
# check kernel version
uname -r
Development / Maintenance Environment
Currently using docker code server as an editor.
But doing this way, it is important to remember that editing files, git commands and control is done in VS CODE on the Development machine, but the execution of commands must be done over ssh.
setup
apt update -y && apt upgrade -y
apt install curl -y
apt install git -y
curl -fsSL https://get.docker.com -o get-docker.sh && sh ./get-docker.sh
docker run hello-world && docker info
docker volume create --driver local --opt type=none --opt device=/ --opt o=bind host_fs
apt install sshfs
fstab
#/etc/fstab
#sshfs#media@nas.lan:/home/media /mnt/media@sshfs:nas.lan fuse defaults,_netdev,allow_other,follow_symlinks 0 0
ssh
#/etc/ssh/sshd_config
PermitRootLogin no
systemctl restart ssh
Update System
apt update -y && apt upgrade -y && apt autoremove -y
if error on update because of EOL check oficial documentation
logs & Promtail
Check folder docker/promtail for more information
Services (Stacks)
External volumes
docker volume create --driver local --opt type=none --opt device=/home/admin/repos --opt o=bind hostfs_home_admin_repos
docker volume create --driver local --opt type=none --opt device=/mnt/media@sshfs:nas.lan --opt o=bind music
docker volume create --driver local --opt type=none --opt device=/ --opt o=bind hostfs
Portainer
for more information check
docker pull portainer/portainer-ce
docker stop portainer
docker rm portainer
docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer:/data portainer/portainer-ce
nginx
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/nginx-selfsigned.key -out /etc/ssl/certs/nginx-selfsigned.crt
code-server
mkdir /config/workspace/docker/nginx/volumes
ln -s /mnt/nginx_config /config/workspace/docker/nginx/volumes/nginx_config
mkdir /config/workspace/docker/zigbee2mqtt/volume
ln -s /mnt/zigbee2mqtt_data /config/workspace/docker/zigbee2mqtt/volumes/zigbee2mqtt_datta
home assistant
LMS
mosquitto
duplicati
Description
Languages
JSON
100%