Compare commits

...

2 commits

Author SHA1 Message Date
Torsten Raudssus
06457d5d41 Correcing ENV format 2025-06-04 04:38:16 +02:00
Torsten Raudssus
7dd4ba4f7a Updating Healthcheck 2024-12-16 00:19:02 +01:00
2 changed files with 10 additions and 10 deletions

View file

@ -5,15 +5,15 @@ ARG SRV_GID="100"
ARG SRV_LOCALE="en_US" ARG SRV_LOCALE="en_US"
ARG SRV_VERSION="0" ARG SRV_VERSION="0"
ENV SRV_UID $SRV_UID ENV SRV_UID=$SRV_UID
ENV SRV_GID $SRV_GID ENV SRV_GID=$SRV_GID
ENV SRV_LOCALE $SRV_LOCALE ENV SRV_LOCALE=$SRV_LOCALE
ENV SRV_VERSION $SRV_VERSION ENV SRV_VERSION=$SRV_VERSION
ENV SRV_APT_GET_INSTALL $SRV_APT_GET_INSTALL ENV SRV_APT_GET_INSTALL=$SRV_APT_GET_INSTALL
ENV DEBIAN_FRONTEND "noninteractive" ENV DEBIAN_FRONTEND="noninteractive"
ENV PGDATA "/data" ENV PGDATA="/data"
ENV POSTGRES_INITDB_ARGS "--locale=${SRV_LOCALE}.UTF-8 --lc-ctype=${SRV_LOCALE}.UTF-8 --lc-monetary=${SRV_LOCALE}.UTF-8 --lc-numeric=${SRV_LOCALE}.UTF-8 --lc-time=${SRV_LOCALE}.UTF-8 --lc-collate=${SRV_LOCALE}.UTF-8 --encoding=UTF8" ENV POSTGRES_INITDB_ARGS="--locale=${SRV_LOCALE}.UTF-8 --lc-ctype=${SRV_LOCALE}.UTF-8 --lc-monetary=${SRV_LOCALE}.UTF-8 --lc-numeric=${SRV_LOCALE}.UTF-8 --lc-time=${SRV_LOCALE}.UTF-8 --lc-collate=${SRV_LOCALE}.UTF-8 --encoding=UTF8"
# explicitly set user/group IDs # explicitly set user/group IDs
RUN if [ -z "$( getent group $SRV_GID )" ] ; then groupadd -r postgres --gid=$SRV_GID ; fi && \ RUN if [ -z "$( getent group $SRV_GID )" ] ; then groupadd -r postgres --gid=$SRV_GID ; fi && \
@ -58,4 +58,4 @@ EXPOSE 5432
CMD ["postgres","-c","listen_addresses=*"] CMD ["postgres","-c","listen_addresses=*"]
HEALTHCHECK --interval=30s --timeout=3s --retries=4 \ HEALTHCHECK --interval=30s --timeout=3s --retries=4 \
CMD pg_isready -U postgres CMD pg_isready -U "${POSTGRES_USER:-postgres}"

View file

@ -10,7 +10,7 @@ If you use the image, you will have to make a mount for the **/data** directory
### Image Name ### Image Name
The image name for your Docker is **src.ci/srv/postgres:latest**. This is only applicable, if you do not want to change the User ID and Group ID. The image name for your Docker is **src.ci/srv/postgres:latest**. This is only applicable, if you do not need to change the User ID and Group ID.
### ARGS ### ARGS