| .git-crypt | ||
| bind9 | ||
| ddclient | ||
| slides-notes | ||
| ssh | ||
| swag | ||
| syncthing | ||
| zotero-sync | ||
| .env | ||
| .gitattributes | ||
| .gitignore | ||
| backup.py | ||
| docker-compose.yml | ||
| gitea-db-pw.secret | ||
| gitea-db-root-pw.secret | ||
| hedgedoc-db-pw.secret | ||
| hedgedoc-db-root-pw.secret | ||
| lychee-db-pw.secret | ||
| lychee-db-root-pw.secret | ||
| nextcloud-db-pw.secret | ||
| nextcloud-db-root-pw.secret | ||
| nocodb-db-pw.secret | ||
| nocodb-db-root-pw.secret | ||
| nocodb-json.secret | ||
| README.md | ||
| transmission-pw.secret | ||
| transmission-user.secret | ||
Docker
Dependencies
git-crypt
Setup
Setup DNS server for docker in /etc/docker/daemon.json:
{
"data-root": "/home/docker",
"dns": ["1.1.1.1", "8.8.8.8", "8.8.4.4"]
}
Once DNS are properly setup on host:
- Create OVH token : https://www.ovh.com/auth/api/createToken
Get *,Put *, ...
- Paste token in
swag/dns-conf/ovh.ini
Services
Create a new service
- Add the service in
docker-compose.yml - Create the DynHost and id https://www.ovh.com/manager/#/web/domain/guiotte.fr/dynhost
- Add the host in the DDclient configuration
./ddclient/ddclient.conf - Add the nginx proxy configuration in
./swag/nginx/proxy-confs/ - Update the local zone in
./bind9/guiotte.db - Restart
bind9andswag:dcc restart bind9 swag
Update MariaDB
After upgrading from one major MySQL/MariaDB release to another, we have to run mariadb-upgrade on the services using MariaDB.
Lychee
dcc stop lychee
dcc exec lychee-db mariadb-upgrade -u root -p"$(cat lychee-db-root-pw.secret)"
dcc restart lychee-db
dcc up -d lychee
Nextcloud
dcc stop nextcloud
dcc exec nextcloud-db mariadb-upgrade -u root -p"$(cat nextcloud-db-root-pw.secret)"
dcc restart nextcloud-db
dcc up -d nextcloud
Backup
To backup the named volumes, run:
./backup.py
Logs
2022-11-02 Created OVH token
2022-09-11 Created taskserver certs for 365 days
2022-06-29 Created OVH token for 30 days