Files
openafc_final/ratdb/Dockerfile
2024-03-25 10:11:24 -04:00

15 lines
456 B
Docker

FROM postgres:14.9-alpine
ENV POSTGRES_PASSWORD=N3SF0LVKJx1RAhFGx4fcw
ENV PGDATA=/mnt/nfs/psql/data
ENV POSTGRES_DB=fbrat
#
ENV AFC_DEVEL_ENV=${AFC_DEVEL_ENV:-production}
COPY ratdb/devel.sh /
RUN chmod +x /devel.sh
RUN /devel.sh
#
ENV AFC_RATDB_CONNS=${AFC_RATDB_CONNS:-1000}
ENTRYPOINT docker-entrypoint.sh postgres -c max_connections=$AFC_RATDB_CONNS
HEALTHCHECK --start-period=20s --interval=10s --timeout=5s \
CMD pg_isready -U postgres || exit 1