From c4407dccf6e3acd14453c21d1a0dccf66a766bc6 Mon Sep 17 00:00:00 2001 From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Tue, 20 Jun 2023 09:36:31 -0700 Subject: [PATCH] Updates the default Postgres to 15 for new installs --- docker/compose/docker-compose.portainer.yml | 2 +- docker/compose/docker-compose.postgres-tika.yml | 2 +- docker/compose/docker-compose.postgres.yml | 2 +- docs/administration.md | 10 ++++++++++ scripts/start_services.sh | 2 +- 5 files changed, 14 insertions(+), 4 deletions(-) diff --git a/docker/compose/docker-compose.portainer.yml b/docker/compose/docker-compose.portainer.yml index 3e76af73c..3dff3d7e2 100644 --- a/docker/compose/docker-compose.portainer.yml +++ b/docker/compose/docker-compose.portainer.yml @@ -37,7 +37,7 @@ services: - redisdata:/data db: - image: docker.io/library/postgres:13 + image: docker.io/library/postgres:15 restart: unless-stopped volumes: - pgdata:/var/lib/postgresql/data diff --git a/docker/compose/docker-compose.postgres-tika.yml b/docker/compose/docker-compose.postgres-tika.yml index a451b00dd..79496b253 100644 --- a/docker/compose/docker-compose.postgres-tika.yml +++ b/docker/compose/docker-compose.postgres-tika.yml @@ -39,7 +39,7 @@ services: - redisdata:/data db: - image: docker.io/library/postgres:13 + image: docker.io/library/postgres:15 restart: unless-stopped volumes: - pgdata:/var/lib/postgresql/data diff --git a/docker/compose/docker-compose.postgres.yml b/docker/compose/docker-compose.postgres.yml index 1450507b0..b528506f3 100644 --- a/docker/compose/docker-compose.postgres.yml +++ b/docker/compose/docker-compose.postgres.yml @@ -35,7 +35,7 @@ services: - redisdata:/data db: - image: docker.io/library/postgres:13 + image: docker.io/library/postgres:15 restart: unless-stopped volumes: - pgdata:/var/lib/postgresql/data diff --git a/docs/administration.md b/docs/administration.md index ea246322a..e9e0489fe 100644 --- a/docs/administration.md +++ b/docs/administration.md @@ -167,6 +167,16 @@ following: This might not actually do anything. Not every new paperless version comes with new database migrations. +### Database Upgrades + +In general, paperless does not require a specific version of PostgreSQL or MariaDB and it is +safe to update them to newer versions. However, you should always take a backup and follow +the instructions from your database's documentation for how to upgrade between major versions. + +For PostgreSQL, refer to [Upgrading a PostgreSQL Cluster](https://www.postgresql.org/docs/current/upgrading.html). + +For MariaDB, refer to [Upgrading MariaDB](https://mariadb.com/kb/en/upgrading/) + ## Downgrading Paperless {#downgrade-paperless} Downgrades are possible. However, some updates also contain database diff --git a/scripts/start_services.sh b/scripts/start_services.sh index 503755c0e..ea0c11cde 100755 --- a/scripts/start_services.sh +++ b/scripts/start_services.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -docker run -p 5432:5432 -e POSTGRES_PASSWORD=password -v paperless_pgdata:/var/lib/postgresql/data -d postgres:13 +docker run -p 5432:5432 -e POSTGRES_PASSWORD=password -v paperless_pgdata:/var/lib/postgresql/data -d postgres:15 docker run -d -p 6379:6379 redis:latest docker run -p 3000:3000 -d gotenberg/gotenberg:7.8 gotenberg --chromium-disable-javascript=true --chromium-allow-list="file:///tmp/.*" docker run -p 9998:9998 -d ghcr.io/paperless-ngx/tika:latest