- Create MapRoute database records for all GPX files for map visualization - Populate route statistics (distance, elevation, coordinates) from GPX parsing - Update GPX file statistics to mirror MapRoute data for post detail pages - Enable /community/api/routes endpoint to return proper route data for map iframe - Fix post detail page GPX statistics display This resolves the issue where the community map showed '2 routes discovered' but routes weren't actually rendering on the Leaflet.js map visualization. Changes: - Dockerfile: Updated init script paths and added migrate-db call - app/__init__.py: Added admin user auto-creation with error handling - app/routes/community.py: Added debug logging and API route for map data - docker-compose.yml: Simplified to use .env for environment variables - run.py: Added comprehensive database schema migration command
15 lines
445 B
YAML
15 lines
445 B
YAML
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "8100:5000"
|
|
working_dir: /opt/moto_site
|
|
volumes:
|
|
- ./data:/opt/moto_site/data # Database persistence
|
|
- ./uploads:/opt/moto_site/uploads # File uploads persistence
|
|
- ./app/static/media:/opt/moto_site/app/static/media # Media files persistence
|
|
- ./.env:/opt/moto_site/.env # Load .env file
|
|
restart: unless-stopped
|