Closed UlrichKnaack closed 4 years ago
imho:
see https://hub.docker.com/_/postgres "Locale Customization" part.
just replace the FROM part to postgis/postgis:12-3.0
and build a new docker image - for yourself ..
FROM postgis/postgis:12-3.0
RUN localedef -i de_DE -c -f UTF-8 -A /usr/share/locale/locale.alias de_DE.UTF-8
ENV LANG de_DE.utf8
and don't forget ... it is only working for empty postgresql data .... ( in your spec: - pgisdb:/var/lib/postgresql/data/
)
https://www.postgresql.org/docs/12/locale.html#id-1.6.10.3.4 "Locale support is automatically initialized when a database cluster is created .... "
or a similar solution :
thank you, now it works as expected.
I've tried to apply german character encoding in my database, but I got
C.UTF-8
. This is my setup:env-pgis:
Output (extract) from
docker-compose logs
: