auto commit

This commit is contained in:
bangdk 2024-11-21 07:18:07 +09:00
parent 9fd71d5eca
commit eb17648c5c
3 changed files with 6 additions and 13 deletions

View File

@ -51,11 +51,10 @@ services:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=${TIMESCALEDB_PASSWORD}
- TIMESCALEDB_DB=${TIMESCALEDB_DB}
- TIMESCALEDB_USER=${TIMESCALEDB_USER}
- TIMESCALEDB_DB=${TIMESCALEDB_DB:-fems_timeseries}
- TIMESCALEDB_USER=${TIMESCALEDB_USER:-fems_user}
- TIMESCALEDB_PASSWORD=${TIMESCALEDB_PASSWORD}
- LANG=C.UTF-8
- LC_ALL=C.UTF-8
- POSTGRES_INITDB_ARGS=--auth-host=scram-sha-256 --auth-local=scram-sha-256
volumes:
- fems_timescaledb:/var/lib/postgresql/data
- ./fems-timescaledb/postgresql.conf:/etc/postgresql/postgresql.conf:ro

Binary file not shown.

View File

@ -1,16 +1,10 @@
# fems-timescaledb/pg_hba.conf
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all trust
local all all scram-sha-256
# IPv4 local connections:
host all all 127.0.0.1/32 scram-sha-256
# IPv6 local connections:
host all all ::1/128 scram-sha-256
# Allow all connections from Docker network
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
# Allow all connections from anywhere
host all all 0.0.0.0/0 scram-sha-256