Skip to content

update postgresql to pg17 #541

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

Merged
merged 1 commit into from
Feb 3, 2025
Merged
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
14 changes: 8 additions & 6 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,26 @@
#
# SPDX-License-Identifier: AGPL-3.0-or-later

version: "3.9"
services:
assume_db:
image: timescaledev/timescaledb-ha:pg15-oss
image: timescaledev/timescaledb-ha:pg17-oss
# smaller without postgis support:
# image: timescale/timescaledb:latest-pg15
# image: timescale/timescaledb:latest-pg17
container_name: assume_db
restart: always
# running as 0 removes the need to create the volume bind-mount beforehand
user: "0:0"
environment:
- POSTGRES_USER=assume
- POSTGRES_PASSWORD=assume
- POSTGRES_DB=assume
- TS_TUNE_MAX_CONNS=500
# pgdata is /home/postgres/pgdata otherwise
# https://github.com/timescale/timescaledb-docker-ha/blob/345ceabef65c808ec6aaaa61a8b6ca568ccad7d3/Dockerfile#L460
- PGDATA=/var/lib/postgresql/data
volumes:
# needed for normal image
#- ./assume-db:/var/lib/postgresql/data
# /home/postgres/data is path for timescaledev image
- ./assume-db:/home/postgres/pgdata
- ./assume-db:/var/lib/postgresql/data
ports:
- 5432:5432
deploy:
Expand Down