documentation

This commit is contained in:
2024-05-31 16:39:22 +01:00
parent 1724a592b0
commit fe80588c07
3 changed files with 31 additions and 28 deletions

View File

@@ -6,19 +6,18 @@ Welcome to homesrv01.dev.lan git page.
Currently hosted on a proxmox ubuntu container. 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
```bash ```bash
# check ubuntu release # lsb_release -a
lsb_release -a
# check kernel version Distributor ID: Ubuntu
uname -r Description: Ubuntu 23.10
Release: 23.10
Codename: mantic
# uname -r
6.8.4-3-pve
``` ```
## Development / Maintenance Environment ## Development / Maintenance Environment
Currently using docker code server as an editor. Currently using docker code server as an editor.
@@ -34,7 +33,6 @@ apt install curl -y
apt install git -y apt install git -y
curl -fsSL https://get.docker.com -o get-docker.sh && sh ./get-docker.sh curl -fsSL https://get.docker.com -o get-docker.sh && sh ./get-docker.sh
docker run hello-world && docker info docker run hello-world && docker info
docker volume create --driver local --opt type=none --opt device=/ --opt o=bind host_fs
apt install sshfs apt install sshfs
``` ```
@@ -57,24 +55,18 @@ PermitRootLogin no
systemctl restart ssh systemctl restart ssh
``` ```
## Update
## Update System
```bash ```bash
apt update -y && apt upgrade -y && apt autoremove -y scripts/auto-update.sh
```
cron
```bash
ln -s $PWD/scripts/auto-update.sh /etc/cron.daily/auto-update
``` ```
if error on update because of EOL [check oficial documentation](https://help.ubuntu.com/community/EOLUpgrades#SpecificOlder)
## logs & Promtail
Check folder docker/promtail for more information
## Services ## Services
### External volumes ### External volumes
``` ```
@@ -91,6 +83,20 @@ for more information [check](https://git.limbosolutions.com/kb/portainer)
services/portainer/docker-run.sh services/portainer/docker-run.sh
``` ```
### Promtail
#### Setup & Update
``` bash
services/promtail/docker-run.sh
```
### telegraf
#### Setup & Update
``` bash
services/telegraf/docker-run.sh
```
### nginx ### nginx
#### Setup & Update #### Setup & Update
@@ -105,8 +111,6 @@ services/nginx/docker-run.sh
services/code-server/docker-run.sh services/code-server/docker-run.sh
``` ```
### home assistant ### home assistant
[Git Repo](https://git.limbosolutions.com/marcio.fernandes/homeAssistant) [Git Repo](https://git.limbosolutions.com/marcio.fernandes/homeAssistant)

View File

@@ -1,9 +1,8 @@
#! /bin/bash #! /bin/bash
# must be executed from repo promtail root folder
docker container stop promtail docker container stop promtail
docker container remove promtail docker container remove promtail
scriptPath=$(dirname "$0") scriptPath="$(dirname "$(readlink -f "$0")")"
docker run -d \ docker run -d \
--name promtail \ --name promtail \

View File

@@ -5,7 +5,7 @@ docker pull telegraf
docker container stop telegraf docker container stop telegraf
docker container remove telegraf docker container remove telegraf
scriptPath=$(dirname "$0") scriptPath="$(dirname "$(readlink -f "$0")")"
docker run -d --name=telegraf \ docker run -d --name=telegraf \
-v /var/run/docker.sock:/var/run/docker.sock \ -v /var/run/docker.sock:/var/run/docker.sock \