mirror of
https://github.com/Telecominfraproject/openafc_final.git
synced 2026-01-27 02:22:02 +00:00
15 lines
456 B
Docker
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
|