-
-
Save jinhoyim/f66e4bd80b62d30734da5af87c42d68f to your computer and use it in GitHub Desktop.
docker-compose for postgres with kr locale
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DB_USER=user_id | |
DB_PASSWORD=password | |
DB_NAME=db_name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.8" | |
services: | |
postgres_db: | |
image: my_postgres:1.0 | |
build: | |
context: . | |
dockerfile: Dockerfile | |
environment: | |
POSTGRES_USER: ${DB_USER} | |
POSTGRES_PASSWORD: ${DB_PASSWORD} | |
POSTGRES_DB: ${DB_NAME} | |
ports: | |
- "5432:5432" | |
volumes: | |
- ./data:/var/lib/postgresql/data | |
- "./init/:/docker-entrypoint-initdb.d/" | |
container_name: postgres_db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM postgres:13 | |
RUN localedef -i ko_KR -c -f UTF-8 -A /usr/share/locale/locale.alias ko_KR.UTF-8 | |
ENV LANG ko_KR.UTF-8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment