postgres changes pgdata directory owner
Summary
During service restart postgres change owner of pgdata directory to 999
which is postgres user UID inside container.
Steps to reproduce
Restart service and check pgdata owner.
Expected behavior
Owner shouldn'tbe changed.
Actual behavior
Owner is changed to uid 999.
Possible fixes
Use another docker sameersbn/postgresql
. There is an option to map postgres user uid.