Porstgres LC_COLLATE & LC_CTYPE change using Laravel Sail
So, problem is I'm newbie in Docker... and pgsql :)
I have simple Docker file FROM postgres:15 RUN localedef -i ru_RU -c -f UTF-8 -A /usr/share/locale/locale.alias ru_RU.UTF-8 ENV LANG ru_RU.utf8
https://www.postgresql.org/docs/current/app-initdb.html
This documentation says that I can set default locale to database cluster on creating that db cluster, adding arguments --lc-ctype=locale and --lc-collate=locale. At the same time, in the official Docker image i see this comment on line 64, that i can pass this arguments via POSTGRES_INITDB_ARGS variable. I added this variable to default Laravel Sail docker-compose.yml, but that doesn't work.
https://github.com/docker-library/postgres/blob/3fda89cc5c2e588f46ae4f1ac117114c8e6814f1/15/bookworm/docker-entrypoint.sh#L63C1-L64C8
Please or to participate in this conversation.