Skip to content

Commit 43b9614

Browse files
authored
update postgresql to pg17 (#541)
1 parent 4c6ad33 commit 43b9614

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

compose.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,26 @@
22
#
33
# SPDX-License-Identifier: AGPL-3.0-or-later
44

5-
version: "3.9"
65
services:
76
assume_db:
8-
image: timescaledev/timescaledb-ha:pg15-oss
7+
image: timescaledev/timescaledb-ha:pg17-oss
98
# smaller without postgis support:
10-
# image: timescale/timescaledb:latest-pg15
9+
# image: timescale/timescaledb:latest-pg17
1110
container_name: assume_db
1211
restart: always
12+
# running as 0 removes the need to create the volume bind-mount beforehand
13+
user: "0:0"
1314
environment:
1415
- POSTGRES_USER=assume
1516
- POSTGRES_PASSWORD=assume
1617
- POSTGRES_DB=assume
1718
- TS_TUNE_MAX_CONNS=500
19+
# pgdata is /home/postgres/pgdata otherwise
20+
# https://github.com/timescale/timescaledb-docker-ha/blob/345ceabef65c808ec6aaaa61a8b6ca568ccad7d3/Dockerfile#L460
21+
- PGDATA=/var/lib/postgresql/data
1822
volumes:
1923
# needed for normal image
20-
#- ./assume-db:/var/lib/postgresql/data
21-
# /home/postgres/data is path for timescaledev image
22-
- ./assume-db:/home/postgres/pgdata
24+
- ./assume-db:/var/lib/postgresql/data
2325
ports:
2426
- 5432:5432
2527
deploy:

0 commit comments

Comments
 (0)