$PGDATA is set in upstream postgres dockerfile and should be used in downstream in case the postgres data directory is changed in the future.