Browse Source

Add health check to pgsql docker image

master
Jan Dittberner 2 years ago
parent
commit
dc96c9472b
  1. 2
      .dockerignore
  2. 1
      .gitignore
  3. 1
      pgsql/Dockerfile

2
.dockerignore

@ -0,0 +1,2 @@
.git
.idea

1
.gitignore

@ -0,0 +1 @@
.idea/

1
pgsql/Dockerfile

@ -13,6 +13,7 @@ EXPOSE 5432
VOLUME /var/lib/postgresql/
COPY pg_hba.conf /etc/postgresql/9.6/main/pg_hba.conf
COPY startup.sh /srv/
HEALTHCHECK CMD pg_isready -d postgres
ENTRYPOINT ["dumb-init"]
CMD "/srv/startup.sh"

Loading…
Cancel
Save