Fix PostgreSQL container permission issues by using named volume

This commit is contained in:
Dale-Kurt Murray
2025-06-06 18:07:53 -04:00
parent ea5649f87c
commit 89d669bf61
2 changed files with 5 additions and 1 deletions

View File

@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Fixed
- Fixed PostgreSQL container permission issues by switching from bind mount to named volume
- Resolved "chown: /var/lib/postgresql/data: Permission denied" errors in PostgreSQL container
## [0.2.0] - 2025-06-06
### Fixed

View File

@@ -123,7 +123,7 @@ services:
- POSTGRES_PASSWORD
- POSTGRES_DB
volumes:
- ./data/postgres:/var/lib/postgresql/data
- postgres_storage:/var/lib/postgresql/data
healthcheck:
test: [ 'CMD-SHELL', 'pg_isready -h localhost -U ${POSTGRES_USER} -d ${POSTGRES_DB}' ]
interval: 5s