Convert nextcloud db to postgres
This commit is contained in:
parent
7eda50239c
commit
5f79109195
2 changed files with 10 additions and 15 deletions
|
@ -18,12 +18,12 @@ $CONFIG = array (
|
||||||
array (
|
array (
|
||||||
0 => 'intersect.jakehoward.tech',
|
0 => 'intersect.jakehoward.tech',
|
||||||
),
|
),
|
||||||
'dbtype' => 'mysql',
|
'dbtype' => 'pgsql',
|
||||||
'version' => '18.0.2.2',
|
'version' => '18.0.2.2',
|
||||||
'overwrite.cli.url' => 'https://intersect.jakehoward.tech',
|
'overwrite.cli.url' => 'https://intersect.jakehoward.tech',
|
||||||
'dbname' => 'nextcloud',
|
'dbname' => 'nextcloud',
|
||||||
'dbhost' => 'mariadb:3306',
|
'dbhost' => 'db',
|
||||||
'dbport' => '',
|
'dbport' => '5432',
|
||||||
'dbtableprefix' => 'oc_',
|
'dbtableprefix' => 'oc_',
|
||||||
'mysql.utf8mb4' => true,
|
'mysql.utf8mb4' => true,
|
||||||
'dbuser' => 'nextcloud',
|
'dbuser' => 'nextcloud',
|
||||||
|
|
|
@ -24,19 +24,14 @@ services:
|
||||||
- "traefik.http.routers.nextcloud.tls=true"
|
- "traefik.http.routers.nextcloud.tls=true"
|
||||||
- "traefik.http.routers.nextcloud.tls.certresolver=le"
|
- "traefik.http.routers.nextcloud.tls.certresolver=le"
|
||||||
|
|
||||||
mariadb:
|
db:
|
||||||
image: linuxserver/mariadb:110.4.12mariabionic-ls53
|
image: postgres:12-alpine
|
||||||
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
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- ./postgres:/var/lib/postgresql/data
|
||||||
|
environment:
|
||||||
|
- POSTGRES_PASSWORD=nextcloud
|
||||||
|
- POSTGRES_USER=nextcloud
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis:5-alpine
|
image: redis:5-alpine
|
||||||
|
|
Loading…
Reference in a new issue