Skip to content

Commit dc7eaaa

Browse files
committed
Updated to Postgres 15
1 parent ceec7d5 commit dc7eaaa

2 files changed

Lines changed: 6 additions & 49 deletions

File tree

Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
# TODO: Switch over to timescale/timescaledb-ha once arm64 supported
3030
# We get POSTGIS and timescale+toolkit from this image
31-
FROM timescaledev/timescaledb-ha:pg14-multi as trimmed
31+
FROM timescaledev/timescaledb-ha:pg15-multi as trimmed
3232
MAINTAINER support@openremote.io
3333

3434
USER root
@@ -59,14 +59,14 @@ RUN chmod +x /docker-entrypoint-initdb.d/*
5959
FROM scratch
6060
COPY --from=trimmed / /
6161

62-
ARG PG_MAJOR=14
62+
ARG PG_MAJOR=15
6363

6464
# Increment this to indicate that a re-index should be carried out on first startup with existing data; REINDEX can still be overidden
6565
# with OR_DISABLE_REINDEX=true
6666
ARG OR_REINDEX_COUNTER=1
6767

68-
ENTRYPOINT ["/or-entrypoint.sh"]
69-
CMD ["postgres"]
68+
ENTRYPOINT ["/bin/sh", "-c", "/or-entrypoint.sh postgres -c max_connections=${POSTGRES_MAX_CONNECTIONS}"]
69+
#postgres -c "max_connections=${POSTGRES_MAX_CONNECTIONS}"
7070

7171
ENV PGROOT=/var/lib/postgresql \
7272
PGDATA=/var/lib/postgresql/data \
@@ -87,7 +87,8 @@ ENV PGROOT=/var/lib/postgresql \
8787
POSTGRES_USER=${POSTGRES_USER:-postgres} \
8888
POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-postgres} \
8989
OR_REINDEX_COUNTER=${OR_REINDEX_COUNTER} \
90-
OR_DISABLE_REINDEX=${OR_DISABLE_REINDEX:-false}
90+
OR_DISABLE_REINDEX=${OR_DISABLE_REINDEX:-false} \
91+
POSTGRES_MAX_CONNECTIONS=${POSTGRES_MAX_CONNECTIONS:-50}
9192

9293
WORKDIR /var/lib/postgresql
9394
EXPOSE 5432 8008 8081

Dockerfile.alpine

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)