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:
@@ -8,7 +8,7 @@ services:
|
|||||||
expose:
|
expose:
|
||||||
- "5000"
|
- "5000"
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/app:/app
|
- ./data:/app
|
||||||
- ./data/instance:/app/instance
|
- ./data/instance:/app/instance
|
||||||
- ./data/uploads:/app/app/static/uploads
|
- ./data/uploads:/app/app/static/uploads
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
@@ -8,7 +8,8 @@ mkdir -p data/{app,instance,uploads,caddy-data,caddy-config}
|
|||||||
|
|
||||||
echo "📁 Copying app folder..."
|
echo "📁 Copying app folder..."
|
||||||
rm -rf data/app
|
rm -rf data/app
|
||||||
cp -r app data/
|
mkdir -p data/app
|
||||||
|
cp -r app/* data/app/
|
||||||
|
|
||||||
echo "📋 Copying Caddyfile..."
|
echo "📋 Copying Caddyfile..."
|
||||||
cp Caddyfile data/
|
cp Caddyfile data/
|
||||||
|
|||||||
Reference in New Issue
Block a user