From 65e1195d5e283c2d4f92053d9343cf2b4fd9e5cc Mon Sep 17 00:00:00 2001 From: Benjamin Bertrand <benjamin.bertrand@esss.se> Date: Mon, 13 Nov 2017 15:09:41 +0100 Subject: [PATCH] Upgrade to postgres 10 Note that beginning with version 10, a major release is indicated by increasing the first part of the version, e.g. 10 to 11. So 10.1 will be a minor version. That's why we can use the docker tag "10". See https://www.postgresql.org/support/versioning/ --- README.rst | 4 ++-- docker-compose.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 4992db3..6b5cc57 100644 --- a/README.rst +++ b/README.rst @@ -69,10 +69,10 @@ Backup & restore To dump the database:: $ docker run --rm --link csentry_postgres:postgres --net csentry_default -e PGPASSWORD="<csentry_password>" - postgres:9.6 pg_dump -h postgres -U csentry csentry_db | gzip > csentry_db.dump.gz + postgres:10 pg_dump -h postgres -U csentry csentry_db | gzip > csentry_db.dump.gz To restore the database:: $ gunzip -c csentry_db.dump.g | docker run --rm --link csentry_postgres:postgres --net csentry_default - -e PGPASSWORD="<csentry_password>" -i postgres:9.6 psql -h postgres -U csentry csentry_db + -e PGPASSWORD="<csentry_password>" -i postgres:10 psql -h postgres -U csentry csentry_db diff --git a/docker-compose.yml b/docker-compose.yml index 28cc8fc..dc458e6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,7 +7,7 @@ services: depends_on: - postgres postgres: - image: postgres:9.6 + image: postgres:10 container_name: csentry_postgres expose: - "5432" -- GitLab