Update readme with upgrade mariadb

This commit is contained in:
Florent Guiotte 2023-07-10 16:53:22 +02:00
parent eede8e5ef7
commit 9438876f59

View File

@ -14,10 +14,6 @@ Once DNS are properly setup on host:
### Services
#### Flood
- Socket: `/config/.local/share/rtorrent/rtorrent.sock`
## Create a new service
1. Add the service in `docker-compose.yml`
@ -27,6 +23,28 @@ Once DNS are properly setup on host:
5. Update the local zone in `./bind9/guiotte.db`
6. Restart `bind9` and `swag`: `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
```bash
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
```bash
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
```
## Logs
2022-11-02 Created OVH token