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 ( array (
0 => 'intersect.jakehoward.tech', 0 => 'intersect.jakehoward.tech',
), ),
'dbtype' => 'pgsql', 'dbtype' => 'mysql',
'version' => '19.0.3.1', 'version' => '19.0.3.1',
'overwrite.cli.url' => 'https://intersect.jakehoward.tech', 'overwrite.cli.url' => 'https://intersect.jakehoward.tech',
'dbname' => 'nextcloud', 'dbname' => 'nextcloud',
'dbhost' => 'db', 'dbhost' => 'mariadb',
'dbport' => '5432', 'dbport' => '3306',
'dbtableprefix' => 'oc_', 'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true, 'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud', 'dbuser' => 'nextcloud',

View file

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