version: '3.8' services: app: # Configuration options: # Option 1: Use the published Docker image from Forgejo registry (recommended for production) # Uncomment the image line and comment out the build section image: ${FORGEJO_REGISTRY}/${FORGEJO_USERNAME}/podcastrr:latest # Option 2: Build from local Dockerfile (for development) # Uncomment the build section and comment out the image line # build: # context: . # dockerfile: Dockerfile ports: - "${PORT:-5000}:5000" volumes: - ./downloads:/app/downloads - ./instance:/app/instance environment: - FLASK_ENV=${FLASK_ENV:-production} - SECRET_KEY=${SECRET_KEY:-change_this_to_a_secure_random_string} - DATABASE_URI=${DATABASE_URI:-sqlite:///instance/podcastrr.db} - DOWNLOAD_PATH=${DOWNLOAD_PATH:-/app/downloads} - LOG_LEVEL=${LOG_LEVEL:-INFO} - PORT=${PORT:-5000} restart: unless-stopped