Files
MUM/docker-compose.yml
Christopher 4f2b8c1307 Update admin API endpoints to v2 in frontend and config
All frontend API calls to admin endpoints have been updated from /admin/api/v1/ to /admin/api/v2/ for account, roles, permissions, settings, and admin management. The docker-compose.yml file now uses environment variables for port configuration, improving flexibility for deployment. No functional changes were made to backend logic.
2025-10-27 22:00:55 -06:00

33 lines
1.7 KiB
YAML

services:
mum: # Service name (Multimedia User Manager)
container_name: mum
build:
context: . # The build context is the current directory
dockerfile: Dockerfile # Specifies the Dockerfile to use
restart: unless-stopped
ports:
- "${HOST_FRONTEND_PORT:-5699}:${FRONTEND_PORT:-5000}" # Host port → React/Flask entrypoint (defaults to 5699→5000)
volumes:
# Mounts the ./MUM directory on the host to /app/instance in the container.
# This is used for persistent data like the SQLite database.
- ./multimediausermanager:/app/instance
environment:
# Set the timezone for the container.
# It's good practice for logging and scheduled tasks.
# Users should change this to their local timezone.
- TZ=America/Denver
- PUID=1000 # REQUIRED: User ID on your host (e.g., run `id -u` on Linux)
- PGID=1000 # REQUIRED: Group ID on your host (e.g., run `id -g` on Linux)
# DEBUG: For fine-grained information, typically of interest only when diagnosing problems.
# INFO: For general operational information (startup, successful operations, etc.).
- FLASK_LOG_LEVEL=INFO
# Add any other environment variables your app might need at runtime
# For example, if you decide to pass some secrets or configurations this way:
# - FLASK_ENV=production # Handled by .flaskenv or run.py for production
# - SECRET_KEY=your_very_secret_key # Will be handled via .env and app config
- FLASK_PORT=${FLASK_PORT:-5000} # Internal Flask API port (mirrors gunicorn bind)
- FRONTEND_PORT=${FRONTEND_PORT:-5000} # Port exposed for the React frontend (defaults to Flask port)