From 22c6795d6db4d96bcdde536fe5fcdc8230c2193a Mon Sep 17 00:00:00 2001 From: miracle091 Date: Tue, 2 Nov 2021 10:40:35 +0100 Subject: [PATCH] Aggiunto tubesync --- README.md | 1 + tubesync/.env | 7 +++ tubesync/README.md | 111 ++++++++++++++++++++++++++++++++++++ tubesync/docker-compose.yml | 21 +++++++ 4 files changed, 140 insertions(+) create mode 100644 tubesync/.env create mode 100644 tubesync/README.md create mode 100644 tubesync/docker-compose.yml diff --git a/README.md b/README.md index 2b932e8..68432f7 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ * [syncthing](syncthing/) - dropbox decentralizzato * [tor-socks-proxy](tor-socks-proxy/) - tor proxy server * [transmission](transmission/) - client bittorrent +* [tubesync](tubesync/) - pvr per youtube * [unifi-controller](unifi/) - interfaccia web per la gestione dell'hardware ubiquiti * [wger](wger/) - server per la gestione della vostra alimentazione e allenamenti * [watchotwer](watchtower/) - aggiorna automaticamente i container diff --git a/tubesync/.env b/tubesync/.env new file mode 100644 index 0000000..40fca1a --- /dev/null +++ b/tubesync/.env @@ -0,0 +1,7 @@ +# Generale +TUBESYNC_WEBUI_PORT=4848 +TUBESYNC_CONFIG=/home/docker/tubesync/config +TUBESYNC_DOWNLOADS=/home/docker/tubesync/downloads + +# Tubesync +TZ=Europe/Amsterdam \ No newline at end of file diff --git a/tubesync/README.md b/tubesync/README.md new file mode 100644 index 0000000..b780a4a --- /dev/null +++ b/tubesync/README.md @@ -0,0 +1,111 @@ +# Tubesync +
+ +
+ +## Descrizione +[![Sorgente](https://img.shields.io/static/v1.svg?color=555555&logoColor=ffffff&logo=github&style=flat&label=&message=Sorgente)](https://github.com/meeb/tubesync) + +Tubesync è un PVR (personal video recorder) per YouTube: +- Praticamente potete gestire tutto tramite l'interefaccia web +- Supporto completo per i canali (anche tramite ID) e le playlist +- [yt-dlp](https://github.com/yt-dlp/yt-dlp) integrato e aggiornato di frequente + +## Struttura file e cartelle +``` +/home/ +└── docker/ + └── tubesync/ + ├── config/ + ├── downloads/ + ├── .env + └── docker-compose.yml +``` + +* `config/` - cartella dove risiedono i dati che servono a tubesync +* `downloads/` - cartella dove vengono salvati i video +* `.env` - file contenenti le variabili environment per il docker-compose +* `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 + +### network +`docker` +```bash +docker network create custom-bridge +``` + +`podman` +```bash +podman network create custom-bridge +``` + +### docker-compose +`docker-compose.yml` +```yml +version: "3.5" +services: + tubesync: + container_name: tubesync + image: ghcr.io/meeb/tubesync + security_opt: + - no-new-privileges:true + networks: + - custom-bridge + restart: unless-stopped + ports: + - ${TUBESYNC_WEBUI_PORT:-4848}:4848 + env_file: .env + volumes: + - ${TUBESYNC_CONFIG:-/home/docker/tubesync/config}:/config + - ${TUBESYNC_DOWNLOADS:-/home/docker/tubesync/downloads}:/downloads + +networks: + custom-bridge: + name: custom-bridge + driver: bridge +``` + +`.env` +```bash +# Generale +TUBESYNC_WEBUI_PORT=4848 +TUBESYNC_CONFIG=/home/docker/tubesync/config +TUBESYNC_DOWNLOADS=/home/docker/tubesync/downloads + +# Tubesync +TZ=Europe/Amsterdam +``` + +## Reverse proxy +Vedi [Todo](#Todo) + +## Aggiornamento +### Automatico +Usando [watchtower](../watchtower) il container si aggiorna automaticamente + +### Manuale +1. `docker-compose up -d` +2. `docker image prune` + +## Backup e ripristino +### Backup +Usate [borg](../borg_backup) per fare i backup giornalieri dell'intera cartella `tubesync` + +### 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 `tubesync` +3. dal backup copiare la cartella `tubesync` +4. far ripartire il container `docker-compose up -d` + +## Todo +Implementare: +- reverse proxy: **[caddy](https://caddyserver.com/)** o **[traefik](https://doc.traefik.io/traefik/)** + +--- + +Licenza: [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/legalcode.txt) \ No newline at end of file diff --git a/tubesync/docker-compose.yml b/tubesync/docker-compose.yml new file mode 100644 index 0000000..aaffc30 --- /dev/null +++ b/tubesync/docker-compose.yml @@ -0,0 +1,21 @@ +version: "3.5" +services: + tubesync: + container_name: tubesync + image: ghcr.io/meeb/tubesync + security_opt: + - no-new-privileges:true + networks: + - custom-bridge + restart: unless-stopped + ports: + - ${TUBESYNC_WEBUI_PORT:-4848}:4848 + env_file: .env + volumes: + - ${TUBESYNC_CONFIG:-/home/docker/tubesync/config}:/config + - ${TUBESYNC_DOWNLOADS:-/home/docker/tubesync/downloads}:/downloads + +networks: + custom-bridge: + name: custom-bridge + driver: bridge \ No newline at end of file