Skip to content

Instantly share code, notes, and snippets.

@jinhoyim
Last active November 8, 2020 12:40
Show Gist options
  • Save jinhoyim/f66e4bd80b62d30734da5af87c42d68f to your computer and use it in GitHub Desktop.
Save jinhoyim/f66e4bd80b62d30734da5af87c42d68f to your computer and use it in GitHub Desktop.
docker-compose for postgres with kr locale
DB_USER=user_id
DB_PASSWORD=password
DB_NAME=db_name
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
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