update docker-compose

main
bluebamus 2025-11-13 16:46:44 +09:00
parent f9bd4d63d6
commit 3d9161d515
1 changed files with 6 additions and 2 deletions

View File

@ -169,10 +169,14 @@ services:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- ./pgdata:/var/lib/postgresql/18/docker
- ../../../config/database/postgresql/postgresql.conf:/var/lib/postgresql/18/docker/postgresql.conf
- ../../../config/database/postgresql/pg_hba.conf:/var/lib/postgresql/18/docker/pg_hba.conf
- ../../../config/database/postgresql/postgresql.conf:/etc/postgresql/postgresql.conf:ro
- ../../../config/database/postgresql/pg_hba.conf:/etc/postgresql/pg_hba.conf:ro
# - ../../../config/database/postgresql/init.sql:/docker-entrypoint-initdb.d/init.sql:ro
- ../../../logs/postgresql:/var/log/postgresql
command: >
postgres
-c config_file=/etc/postgresql/postgresql.conf
-c hba_file=/etc/postgresql/pg_hba.conf
restart: always
profiles:
- postgres