commit
1b8eadba4f
|
@ -0,0 +1,83 @@
|
|||
|
||||
### Linux ###
|
||||
*~
|
||||
|
||||
# temporary files which can be created if a process still has a handle open of a deleted file
|
||||
.fuse_hidden*
|
||||
|
||||
# KDE directory preferences
|
||||
.directory
|
||||
|
||||
# Linux trash folder which might appear on any partition or disk
|
||||
.Trash-*
|
||||
|
||||
# .nfs files are created when an open file is removed but is still being accessed
|
||||
.nfs*
|
||||
|
||||
### macOS ###
|
||||
# General
|
||||
.DS_Store
|
||||
.AppleDouble
|
||||
.LSOverride
|
||||
|
||||
# Icon must end with two \r
|
||||
Icon
|
||||
|
||||
|
||||
# Thumbnails
|
||||
._*
|
||||
|
||||
# Files that might appear in the root of a volume
|
||||
.DocumentRevisions-V100
|
||||
.fseventsd
|
||||
.Spotlight-V100
|
||||
.TemporaryItems
|
||||
.Trashes
|
||||
.VolumeIcon.icns
|
||||
.com.apple.timemachine.donotpresent
|
||||
|
||||
# Directories potentially created on remote AFP share
|
||||
.AppleDB
|
||||
.AppleDesktop
|
||||
Network Trash Folder
|
||||
Temporary Items
|
||||
.apdisk
|
||||
|
||||
### VisualStudioCode ###
|
||||
.vscode/*
|
||||
!.vscode/settings.json
|
||||
!.vscode/tasks.json
|
||||
!.vscode/launch.json
|
||||
!.vscode/extensions.json
|
||||
*.code-workspace
|
||||
|
||||
### VisualStudioCode Patch ###
|
||||
# Ignore all local history of files
|
||||
.history
|
||||
.ionide
|
||||
|
||||
### Windows ###
|
||||
# Windows thumbnail cache files
|
||||
Thumbs.db
|
||||
Thumbs.db:encryptable
|
||||
ehthumbs.db
|
||||
ehthumbs_vista.db
|
||||
|
||||
# Dump file
|
||||
*.stackdump
|
||||
|
||||
# Folder config file
|
||||
[Dd]esktop.ini
|
||||
|
||||
# Recycle Bin used on file shares
|
||||
$RECYCLE.BIN/
|
||||
|
||||
# Windows Installer files
|
||||
*.cab
|
||||
*.msi
|
||||
*.msix
|
||||
*.msm
|
||||
*.msp
|
||||
|
||||
# Windows shortcuts
|
||||
*.lnk
|
|
@ -0,0 +1,12 @@
|
|||
Copyright (c) [2021] [miracle091]
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
PERFORMANCE OF THIS SOFTWARE.
|
|
@ -0,0 +1,65 @@
|
|||
# Esempi per docker-compose
|
||||
|
||||
![logo](https://i.imgur.com/u5LH0jI.png)
|
||||
|
||||
---
|
||||
|
||||
* [miniflux](miniflux/) - feed rss minimale
|
||||
* altri in arrivo, stay tuned™
|
||||
|
||||
|
||||
# Struttura dei compose
|
||||
|
||||
È necessario avere **conoscenza di base di linux e docker-compose** prima di usare gli esempi, ma comunque è quasi tutto semi-esplicativo e dettagliato, nel caso di problemi e/o dubbi non esitate a contattarmi in privato su [telegram](https://t.me/ghostakilla) o aprire una issue.
|
||||
|
||||
* **Utilizzo**
|
||||
* **Struttura file e cartelle**
|
||||
* **docker-compose**
|
||||
* **Reverse proxy**
|
||||
* **Aggiornamenti**
|
||||
* **Backup e ripristino**
|
||||
* **Todo**
|
||||
|
||||
# Precisazioni
|
||||
|
||||
### Uso della tag "latest"
|
||||
|
||||
Quasi tutte le immagini sono senza tag, in modo che venga usata il tag di default `latest`.
|
||||
Questo metodo non è [consigliato](https://vsupalov.com/docker-latest-tag/), ma siete liberi di usare una versione specifica in caso di problemi noti o non vi fidate.
|
||||
|
||||
---
|
||||
|
||||
### Bind mount
|
||||
|
||||
Tutti i file e le cartelle sono montati direttamente dall'host nel container.</br>
|
||||
**Pro:**
|
||||
- Creare, modificare e/o salvare, come se fosse una qualsiasi cartella/file
|
||||
- Backup molto facili da eseguire
|
||||
|
||||
**Contro:**
|
||||
- Maggiore vulnerabilità dell'host, nel caso di un'attacco (esterno per lo più)
|
||||
- Impostare i permessi (lettura/scrittura) per cartelle/file, per non avere i permessi negati durante le modifiche
|
||||
|
||||
---
|
||||
|
||||
### ctop
|
||||
|
||||
[Sito ufficiale](https://ctop.sh/)
|
||||
[Repo (Github)](https://github.com/bcicen/ctop)
|
||||
|
||||
![ctop-look](https://raw.githubusercontent.com/bcicen/ctop/master/_docs/img/grid.gif)
|
||||
|
||||
Tool simile ad htop per una gestione semplice dei container direttamente nel terminale.
|
||||
|
||||
* panoramica dell'uso dell'hardware, in modo da sapere quale contenitore usa quanta CPU, RAM, banda, I/O
|
||||
* informazioni dettagliate sul contenitore, il suo IP, le porte pubblicate ed esposte, quando è stato creato, exec rapido nel contenitore, controllo dei log
|
||||
|
||||
Scritto in Go, super veloce e l'installazione essendo un singolo binario è banale per molte distro linux, sempre che non sia già presente nel vostro package manager.
|
||||
|
||||
|
||||
---
|
||||
|
||||
### Inspirato (moltissimo) da
|
||||
|
||||
[DoTheEvo/selfhosted-apps-docker](https://github.com/DoTheEvo/selfhosted-apps-docker/blob/master/README.md)
|
||||
[StarWhiz/docker_deployment_notes](https://github.com/StarWhiz/docker_deployment_notes/blob/master/README.md)
|
Loading…
Reference in New Issue