Files
cbwebreader/.env.example
ajurna 147a3a54ef **Refactor Docker and Compose for enhanced compatibility and efficiency**
- Restructured `Dockerfile` to include a dedicated frontend build stage and improved runtime configurations.
- Added new health checks and adjusted environment variables for better container management.
- Updated cron job configurations to leverage `/opt/venv` and align with new paths.
- Refined `docker-compose` files for multi-service setups, including better volume and environment variable handling.
- Migrated `cbwebreader-cron` service setup and improved restart policies across the board.
- Enhanced `.gitea` CI workflow to use updated tools (`uv`), streamline buildx processes, and ensure proper version extraction from metadata.
2026-10-13 10:25:07 +01:00

35 lines
971 B
Bash

# Set this or it won't work.
DJANGO_SECRET_KEY =
DJANGO_DEBUG=False
#set this to the hostname of your server.
DJANGO_ALLOWED_HOSTS='localhost'
DB_USER=admin
# Please set a better password
DB_PASS=password
DB_HOST=database
DB_DATABASE=cbwebreader
# https://github.com/jacobian/dj-database-url
DATABASE_URL='postgres://${DB_USER}:${DB_PASS}@${DB_HOST}/${DB_DATABASE}'
# Path to your comics *inside* the container. Keep this as a container path.
COMIC_BOOK_VOLUME=/comics
# Host path that is mounted to the path above (this is the one that varies per machine).
COMIC_BOOK_HOST_PATH=/path/to/comic/folder
# Usually fine tp leave as is.
STATIC_ROOT=/static
# The path where you want to store the Thumbnail files
MEDIA_ROOT='/media'
# This expects the office winrar unrar command line tool for windows or linux.
# Will work without setting if it is in the path
# UNRAR_TOOL = 'unrar.exe'
# Comment the following if not using a reverse proxy.
USE_X_FORWARDED_HOST=True