Replace postgres with mariadb
Its' recommended, and might hopefully fix my annoying auth issues!
This commit is contained in:
parent
40488f62b7
commit
3c21c5670c
2 changed files with 11 additions and 24 deletions
|
@ -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',
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue