Removes volume. Adds healthcheck.

This commit is contained in:
Aaron Louie 2020-04-16 15:31:24 -04:00
parent 556721b3de
commit b9d0ba104c
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
FROM postgres
COPY ./initdb.sh /docker-entrypoint-initdb.d/initdb.sh
HEALTHCHECK CMD ["pg_isready"]
EXPOSE 5432
VOLUME ["/var/lib/postgresql/data"]