diff --git a/docker-compose.db.yml b/docker-compose.db.yml index 02ecda1..413590f 100644 --- a/docker-compose.db.yml +++ b/docker-compose.db.yml @@ -52,9 +52,14 @@ services: - "${TIMESCALEDB_PORT}:5433" environment: - NODE_ENV=${NODE_ENV:-development} - - POSTGRES_DB=${TIMESCALEDB_DB} - - POSTGRES_USER=${POSTGRES_USER} + - POSTGRES_DB=postgres + - POSTGRES_USER=postgres - POSTGRES_PASSWORD=${TIMESCALEDB_PASSWORD} + - TIMESCALEDB_DB=${TIMESCALEDB_DB} + - TIMESCALEDB_USER=${TIMESCALEDB_USER} + - TIMESCALEDB_PASSWORD=${TIMESCALEDB_PASSWORD} + - LANG=C.UTF-8 + - LC_ALL=C.UTF-8 volumes: - fems_timescaledb:/var/lib/postgresql/data - ./fems-timescaledb/postgresql.conf:/etc/postgresql/postgresql.conf:ro diff --git a/fems-timescaledb/pg_hba.conf b/fems-timescaledb/pg_hba.conf index 8181c10..9eaa750 100644 --- a/fems-timescaledb/pg_hba.conf +++ b/fems-timescaledb/pg_hba.conf @@ -1,4 +1,4 @@ -# config/postgres/pg_hba.conf +# fems-timescaledb/pg_hba.conf # TYPE DATABASE USER ADDRESS METHOD # "local" is for Unix domain socket connections only @@ -12,4 +12,12 @@ host all all 172.16.0.0/12 scram-sha-256 host all all 192.168.0.0/16 scram-sha-256 host all all 10.0.0.0/8 scram-sha-256 # Allow connections from specific users -host fems_timeseries fems_user all scram-sha-256 \ No newline at end of file +host fems_timeseries fems_user all scram-sha-256 + +# Locale and Encoding 부분 수정 +datestyle = 'iso, ymd' +timezone = 'Asia/Seoul' +lc_messages = 'C' # 변경 +lc_monetary = 'C' # 변경 +lc_numeric = 'C' # 변경 +lc_time = 'C' # 변경 \ No newline at end of file diff --git a/fems-timescaledb/postgresql.conf b/fems-timescaledb/postgresql.conf index f2b88da..e3cdbc0 100644 --- a/fems-timescaledb/postgresql.conf +++ b/fems-timescaledb/postgresql.conf @@ -1,4 +1,4 @@ -# config/postgres/postgresql.conf +# fems-timescaledb/postgresql.conf # Connection Settings port = 5433 # 기본 포트를 5442으로 변경