CLAUDE: Fix PostgreSQL startup - use local directory instead of volume

- Switch from Docker volume to local directory mount to avoid space issues
- Comment out API service (run locally for development)
- Create logs/database directory
- Add postgres_data/ to .gitignore
- Fixes 'No space left on device' error
This commit is contained in:
Cal Corum 2025-11-07 13:30:37 -06:00
parent 08460c3884
commit e9f70b7ed0
2 changed files with 9 additions and 5 deletions

3
.gitignore vendored
View File

@ -72,3 +72,6 @@ CLAUDE.md
*_backup_* *_backup_*
*.bak *.bak
*.backup *.backup
# PostgreSQL data directory (local mount)
postgres_data/

View File

@ -12,7 +12,7 @@ services:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-pd_dev_password} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-pd_dev_password}
- TZ=${TZ:-America/Chicago} - TZ=${TZ:-America/Chicago}
volumes: volumes:
- postgres_data:/var/lib/postgresql/data - ./postgres_data:/var/lib/postgresql/data
- ./logs:/var/log/postgresql - ./logs:/var/log/postgresql
ports: ports:
- "${POSTGRES_PORT:-5432}:5432" - "${POSTGRES_PORT:-5432}:5432"
@ -59,6 +59,7 @@ services:
# depends_on: # depends_on:
# - postgres # - postgres
volumes: # Using local directories instead of Docker volumes to avoid space issues
postgres_data: # volumes:
driver: local # postgres_data:
# driver: local