Skip to content

Commit

Permalink
🎨 feat(stirling-pdf): Add YouTube video and docker-compose config (#850)
Browse files Browse the repository at this point in the history
Adds a new README.md file with a link to a YouTube video and a
docker-compose.yml file that defines the configuration for the
big-bear-stirling-pdf application. The docker-compose file includes
environment variables for configuring the Stirling PDF application,
such as enabling security, login, and CSRF protection, as well as
setting the default locale and enabling advanced PDF conversion
features.
  • Loading branch information
dragonfire1119 authored Jan 29, 2025
1 parent 456b111 commit 6c0a812
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
1 change: 1 addition & 0 deletions how-to-install-stirling-pdf-on-dockge/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
## YouTube Video
59 changes: 59 additions & 0 deletions how-to-install-stirling-pdf-on-dockge/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Service definitions for the big-bear-stirling-pdf application
services:
# Main service configuration for the Stirling PDF application
# This service provides a web interface running on port 8080 for PDF editing
big-bear-stirling-pdf:
# Name of the container
container_name: big-bear-stirling-pdf

# Image to be used for the container specifies the stirling-pdf version and source
image: stirlingtools/stirling-pdf:0.37.1

# Container restart policy - restarts the container unless manually stopped
restart: unless-stopped

# Environment variables for service configuration
environment:
# Set to true to download security jar (required for authentication login)
- DOCKER_ENABLE_SECURITY=false

# Set to true to enable login for authentication
- SECURITY_ENABLE_LOGIN=true

# Set the initial admin username
- SECURITY_INITIALLOGIN_USERNAME=bigbear

# Set the initial admin password
- SECURITY_INITIALLOGIN_PASSWORD=4500733e-a0f8-4605-a712-fd267404956a

# Set to true to enable CSRF protection
- CSRF_DISABLED=false

# Set the default locale for the application
- DEFAULT_LOCALE=en-US

# Download Calibre onto Stirling-PDF to enable PDF to/from book and advanced HTML conversion
- INSTALL_BOOK_AND_ADVANCED_HTML_OPS=false

# Define custom font libraries to install for document conversions
- LANGS=en_US

# Volume mappings for persistent storage and configuration
# These mounts allow the container to interact with the host system
volumes:
# Required for monitoring system resources and container metrics
- big_bear_stirling_pdf_tessdata:/usr/share/tessdata # Required for extra OCR languages
- big_bear_stirling_pdf_configs:/configs

# Map port 8080 on the host to port 8080 on the container
ports:
- "8080:8080"

# Volumes for the Stirling PDF service
volumes:
big_bear_stirling_pdf_tessdata:
name: big_bear_stirling_pdf_tessdata
driver: local
big_bear_stirling_pdf_configs:
name: big_bear_stirling_pdf_configs
driver: local

0 comments on commit 6c0a812

Please sign in to comment.