Introducing a new way to review your PRs.

Read the announcement

frappe / frappe_docker

Docker environment for developing, deploying, and running Frappe applications (ERPNext and custom apps) in production and development

View on GitHub

15 documents · Updated Nov 23, 2026

overview

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