File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
3232MAINTAINER support@openremote.io
3333
3434USER root
@@ -59,14 +59,14 @@ RUN chmod +x /docker-entrypoint-initdb.d/*
5959FROM scratch
6060COPY --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
6666ARG 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
7171ENV 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
9293WORKDIR /var/lib/postgresql
9394EXPOSE 5432 8008 8081
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments