auto commit

This commit is contained in:
bangdk 2024-11-19 06:13:58 +09:00
parent acbd2f4653
commit e7bc855948
3 changed files with 18 additions and 5 deletions

View File

@ -52,9 +52,14 @@ services:
- "${TIMESCALEDB_PORT}:5433" - "${TIMESCALEDB_PORT}:5433"
environment: environment:
- NODE_ENV=${NODE_ENV:-development} - NODE_ENV=${NODE_ENV:-development}
- POSTGRES_DB=${TIMESCALEDB_DB} - POSTGRES_DB=postgres
- POSTGRES_USER=${POSTGRES_USER} - POSTGRES_USER=postgres
- POSTGRES_PASSWORD=${TIMESCALEDB_PASSWORD} - 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: volumes:
- fems_timescaledb:/var/lib/postgresql/data - fems_timescaledb:/var/lib/postgresql/data
- ./fems-timescaledb/postgresql.conf:/etc/postgresql/postgresql.conf:ro - ./fems-timescaledb/postgresql.conf:/etc/postgresql/postgresql.conf:ro

View File

@ -1,4 +1,4 @@
# config/postgres/pg_hba.conf # fems-timescaledb/pg_hba.conf
# TYPE DATABASE USER ADDRESS METHOD # TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only # "local" is for Unix domain socket connections only
@ -13,3 +13,11 @@ host all all 192.168.0.0/16 scram-sha-256
host all all 10.0.0.0/8 scram-sha-256 host all all 10.0.0.0/8 scram-sha-256
# Allow connections from specific users # Allow connections from specific users
host fems_timeseries fems_user all scram-sha-256 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' # 변경

View File

@ -1,4 +1,4 @@
# config/postgres/postgresql.conf # fems-timescaledb/postgresql.conf
# Connection Settings # Connection Settings
port = 5433 # 기본 포트를 5442으로 변경 port = 5433 # 기본 포트를 5442으로 변경