Replace postgres with mariadb

Its' recommended, and might hopefully fix my annoying auth issues!
This commit is contained in:
Jake Howard 2020-09-26 14:49:38 +01:00
parent 40488f62b7
commit 3c21c5670c
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 11 additions and 24 deletions

View file

@ -18,12 +18,12 @@ $CONFIG = array (
array (
0 => 'intersect.jakehoward.tech',
),
'dbtype' => 'pgsql',
'dbtype' => 'mysql',
'version' => '19.0.3.1',
'overwrite.cli.url' => 'https://intersect.jakehoward.tech',
'dbname' => 'nextcloud',
'dbhost' => 'db',
'dbport' => '5432',
'dbhost' => 'mariadb',
'dbport' => '3306',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',

View file

@ -14,7 +14,7 @@ services:
- /mnt/media:/content:ro
restart: unless-stopped
depends_on:
- db
- mariadb
- redis
- collabora
tmpfs:
@ -28,29 +28,16 @@ services:
- traefik.http.middlewares.nextcloud-hsts.headers.stsseconds=15552000
- traefik.http.routers.nextcloud.middlewares=nextcloud-hsts@docker
db:
image: postgres:12-alpine
mariadb:
image: mariadb:10.5
restart: unless-stopped
volumes:
- /srv/nextcloud-postgres:/var/lib/postgresql/data
- /mnt/tank/dbs/mariadb/nextcloud:/var/lib/mysql
environment:
- POSTGRES_PASSWORD=nextcloud
- POSTGRES_USER=nextcloud
db-backups:
image: prodrigestivill/postgres-backup-local:12-alpine
restart: unless-stopped
volumes:
- /mnt/scratch/db-backups:/backups
depends_on:
- db
environment:
- POSTGRES_HOST=db
- POSTGRES_PASSWORD=nextcloud
- POSTGRES_USER=nextcloud
- POSTGRES_DB=nextcloud
- BACKUP_KEEP_MONTHS=1
- BACKUP_KEEP_WEEKS=1
- MYSQL_ROOT_PASSWORD=nextcloud
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_PASSWORD=nextcloud
redis:
image: redis:6-alpine