Files
Stirling-PDF/testing/compose/docker-compose-editor-only.yml

55 lines
1.8 KiB
YAML

# Editor-only deployment: no Processor, no portal.
#
# Requires ProcessorFeature.ENABLED=false in source - the backend half is compiled
# in, not configured. The two build args below drop the matching front-end code:
# FRONTEND_MODE=editoronly the editor's Processor modules
# BUILD_PORTAL=false the /processor portal chunk
#
# docker compose -f testing/compose/docker-compose-editor-only.yml up --build
#
# There is no companion Processor-on service here: the flag is compiled in, so one
# source tree yields one shape. Compare against a normal build of main instead.
services:
stirling-editor-only:
build:
context: ../..
dockerfile: docker/embedded/Dockerfile
args:
FRONTEND_MODE: editoronly
BUILD_PORTAL: "false"
container_name: Stirling-PDF-Editor-Only
restart: unless-stopped
deploy:
resources:
limits:
memory: 4G
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8080$${SYSTEM_ROOTURIPATH:-''}/api/v1/info/status | grep -q 'UP'"]
interval: 5s
timeout: 10s
retries: 16
ports:
- "8081:8080"
volumes:
- ../../stirling/editor-only/data:/usr/share/tessdata:rw
- ../../stirling/editor-only/config:/configs:rw
- ../../stirling/editor-only/logs:/logs:rw
environment:
DISABLE_ADDITIONAL_FEATURES: "false"
DOCKER_ENABLE_SECURITY: "true"
SECURITY_ENABLELOGIN: "true"
SECURITY_INITIALLOGIN_USERNAME: "admin"
SECURITY_INITIALLOGIN_PASSWORD: "stirling"
SYSTEM_DEFAULTLOCALE: en-US
UI_APPNAME: Stirling-PDF
UI_HOMEDESCRIPTION: Editor-only deployment (Processor disabled)
UI_APPNAMENAVBAR: Stirling-PDF Editor Only
SYSTEM_MAXFILESIZE: "100"
METRICS_ENABLED: "true"
networks:
- stirling-network
networks:
stirling-network:
driver: bridge