1
0
mirror of https://github.com/artvs18/PostgreSQL-docker-image.git synced 2025-05-24 13:41:34 +02:00
2023-01-29 22:02:28 +03:00
2023-01-28 01:35:53 +03:00
2023-01-28 01:35:53 +03:00
2023-01-28 01:35:53 +03:00
2023-01-28 01:35:53 +03:00
2023-01-28 01:35:53 +03:00
2023-01-28 01:35:53 +03:00
2023-01-28 01:35:53 +03:00
2023-01-28 01:35:53 +03:00
2023-01-28 01:35:53 +03:00
2023-01-28 01:35:53 +03:00
2023-01-29 22:02:28 +03: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

Screenshot 2023-01-29 at 20 31 54

You also need to change following Docker settings to use specific locale for your database in postgreSQL-docker-image/Dockerfile

Screenshot 2023-01-29 at 20 34 20

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 Screenshot 2023-01-29 at 21 37 19

Change global locale environment setting in postgreSQL-docker-image/Dockerfile Screenshot 2023-01-29 at 21 37 48

If you want, you also can change image name in postgreSQL-docker-image/Makefile Screenshot 2023-01-29 at 21 38 04

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!
Readme 122 KiB
Languages
TypeScript 38.8%
Dockerfile 21.3%
Go 18.5%
Makefile 16.9%
HTML 4.5%