Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move postgis docker image version to environment #1154

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ POSTGRES_PORT=5432
POSTGRES_SSLMODE=prefer
HOST_POSTGRES_PORT=5433

# Docker image tag used for standalone database setup
# See https://hub.docker.com/r/postgis/postgis/tags
POSTGIS_IMAGE_VERSION=17-3.5-alpine

GEODB_HOST=geodb
GEODB_PORT=5432
GEODB_USER=postgres
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.override.staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
DEBUG_BUILD: ${DEBUG}

geodb:
image: postgis/postgis:12-3.0
image: postgis/postgis:${POSTGIS_IMAGE_VERSION}
restart: unless-stopped
volumes:
- geodb_data:/var/lib/postgresql
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.override.standalone.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
services:

db:
image: postgis/postgis:13-3.1-alpine
image: postgis/postgis:${POSTGIS_IMAGE_VERSION}
restart: unless-stopped
environment:
POSTGRES_DB: ${POSTGRES_DB}
Expand All @@ -14,7 +14,7 @@ services:
command: ["postgres", "-c", "log_statement=all", "-c", "log_destination=stderr"]

geodb:
image: postgis/postgis:12-3.0
image: postgis/postgis:${POSTGIS_IMAGE_VERSION}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably we need to give migration instructions?

restart: unless-stopped
volumes:
- geodb_data:/var/lib/postgresql
Expand Down
Loading