Postgres UID GID
virusperfect opened this issue · comments
I installed the image with the two docker mods (redis and postgres). Works great so far, however, the /config/postgres
folder has user systemd-timesync
and group systemd-resolve
(uid: 102, gid: 103).
I did specify the PUID and PGID in the environment variables and it seems to work everywhere except for the postgres folder.
Postgres only runs as the user postgres
, therefore its configs need to be owned by the same user. I was unable to get postgres to start as abc
(uid and gid are mapped to this user) and I was unable to map the uid and gid of postgres
to the supplied variables.
you are welcome to try get it to work:
https://github.com/imagegenius/docker-mods/tree/universal-postgres/root/etc/s6-overlay