mirror of
https://github.com/artvs18/PostgreSQL-docker-image.git
synced 2025-05-24 13:41:34 +02:00
PostgresSQL
To provide specific image locale go to postgreSQL-docker-image/docker-compose.yaml and add one or a few environment values listed below:
- LC_COLLATE String sort order
- LC_CTYPE Character classification (What is a letter? Its upper-case equivalent?)
- LC_MESSAGES Language of messages
- LC_MONETARY Formatting of currency amounts
- LC_NUMERIC Formatting of numbers
- LC_TIME Formatting of dates and times
You also need to change following Docker settings to use specific locale for your database in postgreSQL-docker-image/Dockerfile
If you only need support of russian locale use command below to run docker container with your credentials:
docker run --name yourContainerName -e POSTGRES_USER=userName -e POSTGRES_PASSWORD=userPassword -e POSTGRES_DB=nameOfDatabase -p 5432:5432 -d artvs18/postgres
As example of how to set image to de_DE locale follow this steps:
Clone repo
git clone "https://github.com/artvs18/postgreSQL-docker-image.git"
Change locale environment settings in postgreSQL-docker-image/docker-compose.yaml
Change global locale environment setting in postgreSQL-docker-image/Dockerfile
If you want, you also can change image name in postgreSQL-docker-image/Makefile
Use command below to build your image:
docker build -t artvs18/postgresss .
Run yout custom docker image:
docker run --name yourContainerName -e POSTGRES_USER=userName -e POSTGRES_PASSWORD=userPassword -e POSTGRES_DB=nameOfDatabase -p 5432:5432 -d artvs18/postgresss
Feel free to customize this image as you want!
Description
This custom PostgreSQL docker image provides ru_RU.UTF-8 locale by default, follow instructions in README.md to customise image by yourself!
Languages
TypeScript
38.8%
Dockerfile
21.3%
Go
18.5%
Makefile
16.9%
HTML
4.5%