mirror of
https://github.com/freedbygrace/SQL.git
synced 2026-07-26 11:28:16 +00:00
Add comprehensive permissions management for Docker bind mounts
NEW SCRIPT: Created scripts/fix-permissions.sh - automated permission fixer Takes ownership of repository files, makes scripts executable, sets proper permissions Verifies permissions are correct before proceeding DOCKER COMPOSE: Added header comments explaining permission requirements DOCUMENTATION: Updated README.md and QUICKSTART.md with permission setup steps WHY CRITICAL: Docker bind mounts require proper file ownership to work correctly USER EXPERIENCE: Single command ./scripts/fix-permissions.sh handles everything
This commit is contained in:
+10
-2
@@ -1,3 +1,11 @@
|
||||
# ============================================================================
|
||||
# Business Analytics Database - Docker Compose Configuration
|
||||
# ============================================================================
|
||||
# IMPORTANT: Before running docker-compose up, ensure proper permissions:
|
||||
# Run: ./scripts/fix-permissions.sh
|
||||
# Or: sudo chown -R $USER:$USER . && chmod -R 755 data/ schema/ scripts/
|
||||
# ============================================================================
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
@@ -11,8 +19,8 @@ services:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
- ./schema:/docker-entrypoint-initdb.d
|
||||
- ./data:/data
|
||||
- ./schema:/docker-entrypoint-initdb.d # Bind mount - requires proper permissions
|
||||
- ./data:/data # Bind mount - requires proper permissions
|
||||
networks:
|
||||
- analytics_network
|
||||
healthcheck:
|
||||
|
||||
Reference in New Issue
Block a user