Aggiunto homer dashboard

This commit is contained in:
miracle091 2021-06-03 11:10:44 +02:00
parent fbccbda7c1
commit 10946e6083
11 changed files with 167 additions and 0 deletions

View File

@ -2,6 +2,7 @@
* <img src="https://raw.githubusercontent.com/NX211/homer-icons/master/foldingathome.png" width="28" /> [folding@home](folding@home/) - calcolo distrubuito per la ricerca medica
* <img src="https://i.ibb.co/jW4C66B/dozzle.png" width="28" /> [dozzle](dozzle/) - interfaccia web per controllare i log dei container
* <img src="https://raw.githubusercontent.com/NX211/homer-icons/master/gitea.png" width="28" /> [gitea](gitea/) - simil-github
* <img src="https://raw.githubusercontent.com/bastienwirtz/homer/main/public/logo.png" width="28" /> [homer](homer/) - semplice pagina per tutti i servizi che volete
* <img src="https://raw.githubusercontent.com/NX211/homer-icons/master/jellyfin.png" width="28" /> [jellyfin](jellyfin/) - simil-netflix
* <img src="https://raw.githubusercontent.com/NX211/homer-icons/master/komga.png" width="28" /> [komga](komga/) - gestore per manga/comics
* <img src="https://raw.githubusercontent.com/NX211/homer-icons/master/youtubedl.png" width="28" /> [metube](metube/) - frontend per youtube-dl

7
homer/.env Normal file
View File

@ -0,0 +1,7 @@
# Generale
HOMER_WEBUI_PORT=8080
HOMER_ASSETS=/home/docker/homer/assets
HOMER_CONFIG=/home/docker/homer/config.yml
# Homer
TZ=Europe/Amsterdam

140
homer/README.md Normal file
View File

@ -0,0 +1,140 @@
# Homer
<div align="center">
<img src="https://camo.githubusercontent.com/a6fa77187477b033cecca67ab4b2477009051578322e9df8df6aa5c5982a3a5c/68747470733a2f2f692e696d6775722e636f6d2f6872676774635a2e706e67" />
</div>
## Descrizione
[Repo (Github)](https://github.com/bastienwirtz/homer) - [Demo](https://homer-demo.netlify.app/)
Homer è una semplice pagina per tutti i vostri servizi (locali e non):
- **1** solo file di configurazione in formato yaml
- Scorciatoie da tastiera
- Possibilità di divisione tramite gruppi e ricerca veloce
- Possibilità di personalizzare i colori, font, etc...
## Struttura file e cartelle
```
/home/
└── docker/
└── homer/
├── assets/
│ └── tools/
├── .env
├── config.yml
└── docker-compose.yml
```
* `assets/` - cartella dove risiedono i dati che servono a homer
* `.env` - file contenenti le variabili environment per il docker compose
* `config.yml` - file di configurazione base, da usare come esempio
* `docker-compose.yml` - file usato per creare il container
**N.B. Tutti i file e le cartelle devono essere creati a mano.**
## Esempi
Semplice esempio per iniziare ad usare subito il container
### docker-compose
`docker-compose.yml`
```yml
version: "3.5"
services:
homer:
container_name: homer
image: b4bz/homer
networks:
- custom-bridge
restart: unless-stopped
ports:
- ${HOMER_WEBUI_PORT:-8080}:8080
env_file: .env
volumes:
- ${HOMER_ASSETS:-/home/docker/homer/assets}:/www/assets:ro
- ${HOMER_CONFIG:-/home/docker/homer/config.yml}:/www/config.yml:ro
networks:
custom-bridge:
name: custom-bridge
driver: bridge
```
`.env`
```bash
# Generale
HOMER_WEBUI_PORT=8080
HOMER_ASSETS=/home/docker/homer/assets
HOMER_CONFIG=/home/docker/homer/config.yml
# Homer
TZ=Europe/Amsterdam
```
### config.yml
`config.yml`
```yml
title: "Homepage"
subtitle: "Homer"
logo: "assets/logo.png"
icon: "fas fa-skull-crossbones"
footer: '<p>un piè di pagina meno brutto</p>'
links:
- name: "Font Awesome Icons Gallery"
icon: "fab fa-fort-awesome"
url: "https://fontawesome.com/icons?d=gallery"
- name: "Libredd.it /r/SelfHosted"
icon: "fab fa-reddit"
url: "https://libredd.it/r/selfhosted/"
services:
- name: "Main"
icon: "fab fa-docker"
items:
- name: "Bookstack"
logo: "/assets/tools/bookstack.png"
subtitle: "Appunti e altro"
url: "https://book.example.com"
- name: "Bitwarden"
logo: "/assets/tools/bitwarden.png"
subtitle: "Password Manager"
url: "https://passwd.example.com"
- name: "Nextcloud"
logo: "/assets/tools/nextcloud.png"
subtitle: "File Sync & Share"
url: "https://nextcloud.example.com"
- name: "Monitor"
icon: "fas fa-heartbeat"
items:
- name: "Prometheus + Grafana"
logo: "/assets/tools/grafana.png"
subtitle: "Metric analytics & dashboards"
url: "https://grafana.example.com"
- name: "Portainer"
logo: "/assets/tools/portainer.png"
subtitle: "Docker Manager"
url: "https://portainer.example.com"
```
## Aggiornamento
### Automatico
Se usate [watchtower](../watchtower) il container si aggiorna automaticamente
### Manuale
1. `docker-compose pull`
2. `docker-compose up -d`
3. `docker image prune`
## Backup e ripristino
### Backup
Usate [borg](../borg_backup) per fare i backup giornalieri dell'intera cartella `homer`
### Ripristino
Per una maggiore spiegazione sui passaggi da fare, controllate [qua](../borg_backup#user-content-controllare-la-cartella-dei-backup)
1. fermare il container `docker-compose down`
2. cancellare l'intera cartella `homer`
3. dal backup copiare la cartella `homer`
4. far ripartire il container `docker-compose up -d`
## Todo
Implementare:
- reverse proxy: **[caddy](https://caddyserver.com/)** o **[traefik](https://doc.traefik.io/traefik/)**

BIN
homer/assets/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

BIN
homer/assets/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

19
homer/docker-compose.yml Normal file
View File

@ -0,0 +1,19 @@
version: "3.5"
services:
homer:
container_name: homer
image: b4bz/homer
networks:
- custom-bridge
restart: unless-stopped
ports:
- ${HOMER_WEBUI_PORT:-8080}:8080
env_file: .env
volumes:
- ${HOMER_ASSETS:-/home/docker/homer/assets}:/www/assets:ro
- ${HOMER_CONFIG:-/home/docker/homer/config.yml}:/www/config.yml:ro
networks:
custom-bridge:
name: custom-bridge
driver: bridge