Knowledge Base updated: 2026-11-22
Frappe Docker knowledge base
Orientation
Frappe Docker packages Frappe/ERPNext-style deployments as Docker Compose stacks, with image definitions, runtime entrypoints, and optional topology overrides.
Its critical deployment state is supplied through Compose environment variables, mounted volumes, and service-specific configuration; repository automation maintains image builds, tests, and deployment templates.
System architecture
flowchart TD
Dev[Developer] --> Compose[Compose files]
Compose --> Backend[Backend]
Compose --> Frontend[Frontend / Nginx]
Compose --> Workers[Workers]
Compose --> Scheduler[Scheduler]
Backend --> DB[(MariaDB or PostgreSQL)]
Backend --> RedisCache[(Redis cache)]
Backend --> RedisQueue[(Redis queue)]
Workers --> RedisQueue
Scheduler --> RedisQueue
Frontend --> Backend
Images[Dockerfiles / Containerfiles] --> Backend
Images --> Frontend
CI[GitHub Actions] --> Images
Tests[Pytest integration suite] --> Compose
Glossary
- Bench: the Frappe command-line environment and application workspace packaged by the images.
- Site: a Frappe tenant configuration and database-backed application instance.
- Backend: the application-serving container role used by web and background services.
- Compose override: an additional Compose file selecting an optional service or networking topology.
- Multi-bench: a deployment arrangement serving more than one Bench environment.
Invariants
- Deployment topology is Compose-defined; base and override Compose files are the source of service relationships (compose.yaml, overrides/…/*.yaml).
- Runtime configuration is injected rather than baked into site state (example.env, configurator.py).
- Image variants are built from repository Dockerfile/Containerfile definitions (
images/**/Dockerfile,images/**/Containerfile). - Integration behavior is validated against running Compose services (
tests/**, pytest.ini). - Automation is versioned with the repository (
.github/workflows/**).
Routing table
- compose.yaml, overrides/…/*.yaml,
resources/**-> docs/container-stack-architecture.md - resources/nginx-entrypoint.sh, resources/entrypoint.sh,
resources/nginx-template.conf, images/…/start*.sh -> docs/runtime-startup-and-web-serving.md - overrides/…/*.yaml, compose.yaml -> docs/compose-service-topology-variants.md
- overrides/*proxy*.yaml, overrides/*ssl*.yaml, overrides/*traefik*.yaml, overrides/*https*.yaml,
resources/nginx-template.conf-> docs/networking-tls-and-proxy-options.md images/**/Dockerfile,images/**/Containerfile,docker-bake.hcl,build/**-> docs/container-image-builds.mdimages/frappe/**,images/layered/**,images/custom/**,images/bench/**-> docs/image-variant-definitions.md- .github/…/*image*.yaml, .github/…/*build*.yaml, .github/…/*publish*.yaml -> docs/image-build-and-publish-automation.md
development/**, example.env, installer.py,.devcontainer/**,.vscode/**-> docs/development-environment-provisioning.md- development/installer.py, development/apps.json, development/…/apps*.json, installer.py -> docs/development-installer-and-app-configuration.md
.devcontainer/**, development/…/devcontainer*.json, compose.devcontainer.yaml -> docs/devcontainer-workspace.md- example.env, compose.yaml, configurator.py,
resources/**config*-> docs/configuration-and-environment-inputs.md scripts/**, .github/…/*config*.yaml, .github/…/*env*.yaml, example.env -> docs/configuration-maintenance-automation.mdtests/**, pytest.ini, compose.test.yaml, overrides/compose.test.yaml -> docs/integration-test-suite.md.github/workflows/**, .pre-commit-config.yaml, .github/dependabot.yml, .github/stale.yml -> docs/repository-quality-automation.md