modified: services/code-server/docker-compose.yaml modified: services/code-server/docker-run.sh
This commit is contained in:
93
README.md
93
README.md
@@ -2,6 +2,32 @@
|
|||||||
|
|
||||||
Welcome to homesrv01.dev.lan git page.
|
Welcome to homesrv01.dev.lan git page.
|
||||||
|
|
||||||
|
- [homesrv01.dev.lan](#homesrv01devlan)
|
||||||
|
- [OS](#os)
|
||||||
|
- [Development / Maintenance Environment](#development--maintenance-environment)
|
||||||
|
- [setup](#setup)
|
||||||
|
- [fstab](#fstab)
|
||||||
|
- [ssh](#ssh)
|
||||||
|
- [Update](#update)
|
||||||
|
- [Services](#services)
|
||||||
|
- [External volumes](#external-volumes)
|
||||||
|
- [Portainer](#portainer)
|
||||||
|
- [Promtail](#promtail)
|
||||||
|
- [Telegraf](#telegraf)
|
||||||
|
- [Setup \& Update](#setup--update)
|
||||||
|
- [nginx](#nginx)
|
||||||
|
- [Setup \& Update](#setup--update-1)
|
||||||
|
- [code-server](#code-server)
|
||||||
|
- [Setup \& Update](#setup--update-2)
|
||||||
|
- [home assistant](#home-assistant)
|
||||||
|
- [LMS](#lms)
|
||||||
|
- [Mosquitto](#mosquitto)
|
||||||
|
- [wyoming-faster-whisper](#wyoming-faster-whisper)
|
||||||
|
- [Setup \& Update](#setup--update-3)
|
||||||
|
- [wyoming-piper](#wyoming-piper)
|
||||||
|
- [Setup \& Update](#setup--update-4)
|
||||||
|
|
||||||
|
|
||||||
## OS
|
## OS
|
||||||
|
|
||||||
Currently hosted on a proxmox ubuntu container.
|
Currently hosted on a proxmox ubuntu container.
|
||||||
@@ -40,10 +66,7 @@ Codename: noble
|
|||||||
|
|
||||||
## Development / Maintenance Environment
|
## Development / Maintenance Environment
|
||||||
|
|
||||||
Currently using docker code server as an editor.
|
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
|
## setup
|
||||||
|
|
||||||
@@ -55,16 +78,15 @@ 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
|
||||||
apt install sshfs
|
apt install sshfs
|
||||||
apt install ansible
|
apt install ansible
|
||||||
```
|
```
|
||||||
|
|
||||||
## fstab
|
## fstab
|
||||||
|
|
||||||
```
|
```bash
|
||||||
#/etc/fstab
|
#/etc/fstab
|
||||||
#sshfs#media@nas.lan:/home/media /mnt/media@sshfs:nas.lan fuse defaults,_netdev,allow_other,follow_symlinks 0 0
|
#sshfs#media@nas.lan:/home/media /mnt/media@sshfs:nas.lan fuse defaults,_netdev,allow_other,follow_symlinks 0 0
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## ssh
|
## ssh
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@@ -76,23 +98,14 @@ PermitRootLogin no
|
|||||||
systemctl restart ssh
|
systemctl restart ssh
|
||||||
```
|
```
|
||||||
|
|
||||||
## Update
|
## Update
|
||||||
```bash
|
|
||||||
scripts/auto-update.sh
|
|
||||||
```
|
|
||||||
cron
|
|
||||||
```bash
|
```bash
|
||||||
|
./scripts/auto-update.sh
|
||||||
ln -s $PWD/scripts/auto-update.sh /etc/cron.daily/auto-update
|
ln -s $PWD/scripts/auto-update.sh /etc/cron.daily/auto-update
|
||||||
```
|
|
||||||
|
|
||||||
check logs
|
|
||||||
|
|
||||||
```bash
|
|
||||||
journalctl -r -t auto-update
|
journalctl -r -t auto-update
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Services
|
## Services
|
||||||
|
|
||||||
### External volumes
|
### External volumes
|
||||||
@@ -105,11 +118,11 @@ docker volume create --driver local --opt type=none --opt device=/ --opt o=bind
|
|||||||
|
|
||||||
### Portainer
|
### Portainer
|
||||||
|
|
||||||
mantained by ansible myInfra.docker.portainer role
|
maintained by ansible myInfra.docker.portainer role
|
||||||
|
|
||||||
### Promtail
|
### Promtail
|
||||||
|
|
||||||
mantained by ansible myInfra.docker.promtail role
|
maintained by ansible myInfra.docker.promtail role
|
||||||
|
|
||||||
### Telegraf
|
### Telegraf
|
||||||
|
|
||||||
@@ -120,6 +133,7 @@ mantained by ansible myInfra.docker.telegraf role
|
|||||||
### nginx
|
### nginx
|
||||||
|
|
||||||
#### Setup & Update
|
#### Setup & Update
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
services/nginx/docker-run.sh
|
services/nginx/docker-run.sh
|
||||||
```
|
```
|
||||||
@@ -132,31 +146,12 @@ 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)
|
||||||
|
|
||||||
[from dev machine](services/has/README.md)
|
|
||||||
|
|
||||||
|
|
||||||
for setup execute on portainer docker compose then mount on code server
|
|
||||||
```
|
|
||||||
- has_config:/config/workspace/host/repos/homesrv01.dev.lan/services/has/volumes/config
|
|
||||||
```
|
|
||||||
|
|
||||||
on code server from repo root folder
|
|
||||||
|
|
||||||
```
|
|
||||||
cd services
|
|
||||||
mkdir has
|
|
||||||
cd has
|
|
||||||
git glone ssh://git@git.limbosolutions.com:2222/marcio.fernandes/homeAssistant.git .
|
|
||||||
```
|
|
||||||
|
|
||||||
### LMS
|
### LMS
|
||||||
|
|
||||||
[Git Repo](/marcio.fernandes/lms)
|
[Git Repo](/marcio.fernandes/lms)
|
||||||
|
|
||||||
### Mosquitto
|
### Mosquitto
|
||||||
@@ -165,28 +160,28 @@ git glone ssh://git@git.limbosolutions.com:2222/marcio.fernandes/homeAssistant.g
|
|||||||
|
|
||||||
[from dev machine](services/mosquitto/README.md)
|
[from dev machine](services/mosquitto/README.md)
|
||||||
|
|
||||||
|
|
||||||
for setup execute on portainer docker compose then mount on code server
|
for setup execute on portainer docker compose then mount on code server
|
||||||
```
|
|
||||||
|
``` bash
|
||||||
- mosquitto_config:/config/workspace/host/repos/homesrv01.dev.lan/services/mosquitto/volumes/config
|
- mosquitto_config:/config/workspace/host/repos/homesrv01.dev.lan/services/mosquitto/volumes/config
|
||||||
- mosquitto_data:/config/workspace/host/repos/homesrv01.dev.lan/service/mosquitto/volumes/data
|
- mosquitto_data:/config/workspace/host/repos/homesrv01.dev.lan/service/mosquitto/volumes/data
|
||||||
```
|
```
|
||||||
|
|
||||||
on code server from repo root folder
|
on code server from repo root folder
|
||||||
|
|
||||||
```
|
``` bash
|
||||||
cd services
|
cd services
|
||||||
mkdir mosquitto
|
mkdir mosquitto
|
||||||
cd mosquitto
|
cd mosquitto
|
||||||
git glone ssh://git@git.limbosolutions.com:2222/marcio.fernandes/mosquitto.git .
|
git glone ssh://git@git.limbosolutions.com:2222/marcio.fernandes/mosquitto.git .
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## wyoming-faster-whisper
|
## wyoming-faster-whisper
|
||||||
|
|
||||||
https://github.com/home-assistant/addons/blob/master/whisper/DOCS.md
|
https://github.com/home-assistant/addons/blob/master/whisper/DOCS.md
|
||||||
|
|
||||||
#### Setup & Update
|
#### Setup & Update
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
services/wyoming-faster-whisper/docker-run.sh
|
services/wyoming-faster-whisper/docker-run.sh
|
||||||
```
|
```
|
||||||
@@ -194,11 +189,7 @@ services/wyoming-faster-whisper/docker-run.sh
|
|||||||
## wyoming-piper
|
## wyoming-piper
|
||||||
|
|
||||||
#### Setup & Update
|
#### Setup & Update
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
services/wyoming-piper/docker-run.sh
|
services/wyoming-piper/docker-run.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ services:
|
|||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- code-server_config:/config
|
- code-server_config:/config
|
||||||
- code-server_root:/root
|
- code-server_root:/root
|
||||||
- has_config:/config/workspace/host/repos/homesrv01.dev.lan/services/has/volumes/config
|
- has_config:/config/workspace/has/volumes/config
|
||||||
- ./../nginx/volumes/nginx_conf:/config/workspace/host/repos/homesrv01.dev.lan/services/nginx/volumes/nginx_conf
|
- ./../nginx/volumes/nginx_conf:/config/workspace/host/repos/homesrv01.dev.lan/services/nginx/volumes/nginx_conf
|
||||||
#- mosquitto_config:/config/workspace/host/repos/homesrv01.dev.lan/services/mosquitto/volumes/config
|
#- mosquitto_config:/config/workspace/host/repos/homesrv01.dev.lan/services/mosquitto/volumes/config
|
||||||
#- mosquitto_data:/config/workspace/host/repos/homesrv01.dev.lan/services/mosquitto/volumes/data
|
#- mosquitto_data:/config/workspace/host/repos/homesrv01.dev.lan/services/mosquitto/volumes/data
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ scriptPath="$(dirname "$(readlink -f "$0")")"
|
|||||||
currentPath=$PWD
|
currentPath=$PWD
|
||||||
|
|
||||||
cd $scriptPath
|
cd $scriptPath
|
||||||
docker-compose pull
|
docker compose pull
|
||||||
docker-compose up --force-recreate --build -d
|
docker compose up --force-recreate --build -d
|
||||||
|
|
||||||
cd $currentPath
|
cd $currentPath
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user