fix: correct data folder mount structure for Python imports

- Mount ./data:/app instead of ./data/app:/app to preserve directory nesting
- This allows Python imports like 'from app.config' to work correctly
- data/app/ now contains the Python package (app.py, config.py, etc.)
- Verified containers start healthy with proper module resolution
This commit is contained in:
root
2026-01-14 21:15:34 +02:00
parent c879bbaed0
commit b7afa9736b
2 changed files with 3 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ services:
expose:
- "5000"
volumes:
- ./data/app:/app
- ./data:/app
- ./data/instance:/app/instance
- ./data/uploads:/app/app/static/uploads
environment:

View File

@@ -8,7 +8,8 @@ mkdir -p data/{app,instance,uploads,caddy-data,caddy-config}
echo "📁 Copying app folder..."
rm -rf data/app
cp -r app data/
mkdir -p data/app
cp -r app/* data/app/
echo "📋 Copying Caddyfile..."
cp Caddyfile data/