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:
parent
08460c3884
commit
e9f70b7ed0
5
.gitignore
vendored
5
.gitignore
vendored
@ -71,4 +71,7 @@ CLAUDE.md
|
||||
# Database backups
|
||||
*_backup_*
|
||||
*.bak
|
||||
*.backup
|
||||
*.backup
|
||||
|
||||
# PostgreSQL data directory (local mount)
|
||||
postgres_data/
|
||||
@ -12,7 +12,7 @@ services:
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-pd_dev_password}
|
||||
- TZ=${TZ:-America/Chicago}
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
- ./postgres_data:/var/lib/postgresql/data
|
||||
- ./logs:/var/log/postgresql
|
||||
ports:
|
||||
- "${POSTGRES_PORT:-5432}:5432"
|
||||
@ -59,6 +59,7 @@ services:
|
||||
# depends_on:
|
||||
# - postgres
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
driver: local
|
||||
# Using local directories instead of Docker volumes to avoid space issues
|
||||
# volumes:
|
||||
# postgres_data:
|
||||
# driver: local
|
||||
|
||||
Loading…
Reference in New Issue
Block a user