Convert nextcloud db to postgres

This commit is contained in:
Jake Howard 2020-03-18 21:35:17 +00:00
parent 7eda50239c
commit 5f79109195
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 10 additions and 15 deletions

View file

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

View file

@ -24,19 +24,14 @@ services:
- "traefik.http.routers.nextcloud.tls=true"
- "traefik.http.routers.nextcloud.tls.certresolver=le"
mariadb:
image: linuxserver/mariadb:110.4.12mariabionic-ls53
environment:
- PUID={{ docker_user.id }}
- PGID={{ docker_user.id }}
- MYSQL_ROOT_PASSWORD=root
- TZ=Europe/London
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_PASSWORD=nextcloud
volumes:
- /srv/nextcloud-mariadb:/config
db:
image: postgres:12-alpine
restart: unless-stopped
volumes:
- ./postgres:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=nextcloud
- POSTGRES_USER=nextcloud
redis:
image: redis:5-alpine