24 lines
756 B
YAML
24 lines
756 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
app:
|
|
# Use either build or image configuration
|
|
# For local development:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
# For Forgejo registry (uncomment and update):
|
|
# image: ${FORGEJO_REGISTRY}/${FORGEJO_USERNAME}/podcastrr:latest
|
|
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
|