Files
gh-christianlouis-quizzical…/docker-compose.yml
T
Christian Krakau-Louis 2f55f898ed Add Spotify integration with improved token management and user interface
- Implemented Spotify OAuth handling in spotify_client_manager.py to ensure valid access tokens for users.
- Created helper functions in spotify_helper.py for refreshing tokens and retrieving user information.
- Developed manage_spotify.html template for connecting and managing Spotify accounts, displaying connection status and token information.
- Added logging for token management processes to enhance debugging and monitoring.
- Introduced a debug client for Spotify interactions to facilitate easier testing and development.
2025-05-27 21:40:37 +02:00

60 lines
1.9 KiB
YAML

services:
web:
build: .
ports:
- "5000:5000"
volumes:
# Development volumes for hot reloading
- ./musicround:/app/musicround
- ./templates:/app/templates
- ./static:/app/static
- ./migrations:/app/migrations
- ./.env:/app/.env
- musicround_data:/data
labels:
ofelia.enabled: "true"
ofelia.job-exec.backup.schedule: "@hourly"
ofelia.job-exec.backup.command: "python /app/run.py backup create --auto"
ofelia.job-exec.backup.no-overlap: "true"
ofelia.job-exec.retention.schedule: "@weekly"
ofelia.job-exec.retention.command: "python /app/run.py backup retention --days 13"
ofelia.job-exec.retention.no-overlap: "true"
env_file:
- .env
environment:
- FLASK_APP=run.py
- FLASK_ENV=development # Using the older style for compatibility
- FLASK_DEBUG=1
- SQLALCHEMY_DATABASE_URI=sqlite:///data/song_data.db
- PYTHONUNBUFFERED=1
# Hot reloading specific settings
- FLASK_RUN_EXTRA_FILES=./templates:/app/templates,./static:/app/static
- FLASK_RUN_HOST=0.0.0.0
- FLASK_RUN_PORT=5000
- PYTHONDONTWRITEBYTECODE=1
# Email configuration variables
- MAIL_HOST=${MAIL_HOST}
- MAIL_PORT=${MAIL_PORT}
- MAIL_USERNAME=${MAIL_USERNAME}
- MAIL_PASSWORD=${MAIL_PASSWORD}
- MAIL_SENDER=${MAIL_SENDER}
- MAIL_RECIPIENT=${MAIL_RECIPIENT}
restart: unless-stopped
# Updated command with explicit extra-files and reload arguments
command: python -m flask run --host=0.0.0.0 --port=5000 --reload
scheduler:
image: mcuadros/ofelia:latest
depends_on:
- web
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
restart: unless-stopped
command: daemon --docker
labels:
ofelia.job-local.my-test-job.schedule: "@hourly"
ofelia.job-local.my-test-job.command: "date"
volumes:
musicround_data:
driver: local