File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 2
2
#
3
3
# SPDX-License-Identifier: AGPL-3.0-or-later
4
4
5
- version : " 3.9"
6
5
services :
7
6
assume_db :
8
- image : timescaledev/timescaledb-ha:pg15 -oss
7
+ image : timescaledev/timescaledb-ha:pg17 -oss
9
8
# smaller without postgis support:
10
- # image: timescale/timescaledb:latest-pg15
9
+ # image: timescale/timescaledb:latest-pg17
11
10
container_name : assume_db
12
11
restart : always
12
+ # running as 0 removes the need to create the volume bind-mount beforehand
13
+ user : " 0:0"
13
14
environment :
14
15
- POSTGRES_USER=assume
15
16
- POSTGRES_PASSWORD=assume
16
17
- POSTGRES_DB=assume
17
18
- 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
18
22
volumes :
19
23
# 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
23
25
ports :
24
26
- 5432:5432
25
27
deploy :
You can’t perform that action at this time.
0 commit comments