Compare commits

...

81 Commits
v3.2.1 ... main

Author SHA1 Message Date
github-actions 380b9d069a chore: Update example.env 2026-09-02 13:07:13 +00:00
github-actions af21e06200 chore: Update example.env 2026-09-02 07:54:40 +00:00
Daniel Radl 5d971239fb
Merge pull request #1984 from frappe/dependabot/npm_and_yarn/docs/docs-minor-patch-7cc3f5d132
chore(deps-dev): bump mermaid from 11.17.0 to 11.17.2 in /docs in the docs-minor-patch group
2026-09-01 12:07:53 +02:00
Daniel Radl b2b32a062a
Merge pull request #1983 from frappe/dependabot/pre_commit/pre-commit-hooks-ec5a011df4
chore(deps): bump https://github.com/pycqa/isort from 9.0.0b5 to 9.0.1 in the pre-commit-hooks group
2026-09-01 12:07:10 +02:00
dependabot[bot] 370bdec586
chore(deps-dev): bump mermaid in /docs in the docs-minor-patch group
Bumps the docs-minor-patch group in /docs with 1 update: [mermaid](https://github.com/mermaid-js/mermaid).


Updates `mermaid` from 11.17.0 to 11.17.2
- [Release notes](https://github.com/mermaid-js/mermaid/releases)
- [Commits](https://github.com/mermaid-js/mermaid/compare/mermaid@11.17.0...mermaid@11.17.2)

---
updated-dependencies:
- dependency-name: mermaid
  dependency-version: 11.17.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: docs-minor-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-01 08:32:28 +00:00
dependabot[bot] af1857ea97
chore(deps): bump https://github.com/pycqa/isort
Bumps the pre-commit-hooks group with 1 update: [https://github.com/pycqa/isort](https://github.com/pycqa/isort).


Updates `https://github.com/pycqa/isort` from 9.0.0b5 to 9.0.1
- [Release notes](https://github.com/pycqa/isort/releases)
- [Changelog](https://github.com/PyCQA/isort/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pycqa/isort/compare/9.0.0b5...9.0.1)

---
updated-dependencies:
- dependency-name: https://github.com/pycqa/isort
  dependency-version: 9.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: pre-commit-hooks
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-01 08:32:27 +00:00
github-actions ba450260c5 chore: Update example.env 2026-08-25 17:36:33 +00:00
Daniel Radl 275f0b9715
Merge pull request #1978 from frappe/dependabot/docker_compose/overrides/proxy-images-ffb513d09f
chore(deps): bump traefik from v3.6 to v3.7 in /overrides in the proxy-images group
2026-08-25 16:05:33 +02:00
Daniel Radl 664f0d3d29 fix(traefik): delete ambiguous underscore headers 2026-08-25 15:47:44 +02:00
Daniel Radl 58e11d10e1
Merge pull request #1979 from frappe/dependabot/github_actions/actions/upload-artifact-7
chore(deps): bump actions/upload-artifact from 4 to 7
2026-08-25 15:30:02 +02:00
Daniel Radl b149ed2828
Merge pull request #1980 from AMR-Mannesmann/chore/remove-pre-commit-autoupdate
ci: remove pre-commit autoupdate workflow
2026-08-25 15:23:57 +02:00
Daniel Radl 67dd211603 ci: remove pre-commit autoupdate workflow 2026-08-25 15:17:48 +02:00
dependabot[bot] c2d33cd3e6
chore(deps): bump actions/upload-artifact from 4 to 7
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 7.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v7)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-25 12:59:57 +00:00
dependabot[bot] c5c68c06e4
chore(deps): bump traefik in /overrides in the proxy-images group
Bumps the proxy-images group in /overrides with 1 update: traefik.


Updates `traefik` from v3.6 to v3.7

---
updated-dependencies:
- dependency-name: traefik
  dependency-version: v3.7
  dependency-type: direct:production
  dependency-group: proxy-images
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-25 12:55:47 +00:00
Daniel Radl f392672fbf
Merge pull request #1971 from AMR-Mannesmann/feat(actions)-container-security-checks
feat(actions): container security checks
2026-08-25 14:53:29 +02:00
Daniel Radl f55d128897
Merge pull request #1977 from frappe/dependabot/npm_and_yarn/docs/docs-minor-patch-ecc5ad4f20
chore(deps-dev): bump the docs-minor-patch group in /docs with 2 updates
2026-08-25 13:11:25 +02:00
Daniel Radl 73f107dcc3
Merge pull request #1976 from frappe/dependabot/pre_commit/pre-commit-hooks-7622e3ea76
chore(deps): bump https://github.com/pycqa/isort from 9.0.0b2 to 9.0.0b5 in the pre-commit-hooks group
2026-08-25 12:51:20 +02:00
dependabot[bot] 5895f8a42d
chore(deps-dev): bump the docs-minor-patch group in /docs with 2 updates
Bumps the docs-minor-patch group in /docs with 2 updates: [mermaid](https://github.com/mermaid-js/mermaid) and [vitepress-sidebar](https://github.com/jooy2/vitepress-sidebar).


Updates `mermaid` from 11.16.1 to 11.17.0
- [Release notes](https://github.com/mermaid-js/mermaid/releases)
- [Commits](https://github.com/mermaid-js/mermaid/compare/mermaid@11.16.1...mermaid@11.17.0)

Updates `vitepress-sidebar` from 1.38.0 to 1.39.0
- [Changelog](https://github.com/jooy2/vitepress-sidebar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jooy2/vitepress-sidebar/commits)

---
updated-dependencies:
- dependency-name: mermaid
  dependency-version: 11.17.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: docs-minor-patch
- dependency-name: vitepress-sidebar
  dependency-version: 1.39.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: docs-minor-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-25 08:24:44 +00:00
dependabot[bot] 129319e44f
chore(deps): bump https://github.com/pycqa/isort
Bumps the pre-commit-hooks group with 1 update: [https://github.com/pycqa/isort](https://github.com/pycqa/isort).


Updates `https://github.com/pycqa/isort` from 9.0.0b2 to 9.0.0b5
- [Release notes](https://github.com/pycqa/isort/releases)
- [Changelog](https://github.com/PyCQA/isort/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pycqa/isort/compare/9.0.0b2...9.0.0b5)

---
updated-dependencies:
- dependency-name: https://github.com/pycqa/isort
  dependency-version: 9.0.0b5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: pre-commit-hooks
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-25 08:24:36 +00:00
Daniel Radl 12dadba5a8 ci(security): narrow Trivy code scanning upload 2026-08-20 19:25:33 +02:00
Daniel Radl f706f3a402 ci(security): consolidate scheduled image scans 2026-08-20 18:35:44 +02:00
Daniel Radl 810a7285e9 refactor(ci): reuse stable image scans 2026-08-20 18:27:14 +02:00
Daniel Radl af3065c5a7 ci(security): schedule published image scans 2026-08-20 18:21:39 +02:00
Daniel Radl f932bc52e4 chore(deps): track supported runtime lines 2026-08-20 18:21:02 +02:00
Daniel Radl 176743eeeb chore(deps): track Python 3.11 patches 2026-08-20 17:53:36 +02:00
Daniel Radl a8ba498e97 chore(deps): update v15 runtimes 2026-08-20 17:45:54 +02:00
Daniel Radl 60803e652a ci(security): limit Trivy uploads to main 2026-08-20 16:26:11 +02:00
Daniel Radl e97eb0a8ca ci(security): add container validation checks 2026-08-20 15:24:18 +02:00
Daniel Radl 4b9d35666a
Merge pull request #1970 from AMR-Mannesmann/feat(docs)-render-mermaid-diagrams
feat(docs): render mermaid diagrams
2026-08-20 14:08:43 +02:00
Daniel Radl f76fdf15d0 feat(docs): render mermaid diagrams 2026-08-20 14:02:46 +02:00
Daniel Radl c9065d30ed
Merge pull request #1963 from frappe/dependabot/pre_commit/pre-commit-hooks-f8ec6eb6c9
chore(deps): bump prettier from 3.5.2 to 3.9.6 in the pre-commit-hooks group across 1 directory
2026-08-19 21:28:18 +02:00
Daniel Radl e7983a6d8a style(docs): format multi-tenancy example 2026-08-19 21:21:53 +02:00
Daniel Radl 2719f343cd
Merge pull request #1968 from AMR-Mannesmann/ci(docs)-skip-unrelated-builds
ci(docs): skip builds for unrelated pull requests
2026-08-19 21:13:34 +02:00
Daniel Radl c370b13dfa ci(docs): skip builds for unrelated pull requests 2026-08-19 21:10:40 +02:00
Daniel Radl 5eadd987e3
Merge pull request #1967 from AMR-Mannesmann/fix(docs)-remove-incompatible-vite-override
fix(docs): remove incompatible vite override
2026-08-19 20:58:02 +02:00
Daniel Radl c94c98566e
Merge pull request #1966 from AMR-Mannesmann/ci(docs)-validate-vitepress-builds
ci(docs): validate vitepress builds on pull requests
2026-08-19 20:53:21 +02:00
Daniel Radl bb2ba1023f ci(docs): validate vitepress builds on pull requests 2026-08-19 20:06:42 +02:00
Daniel Radl 7548bf0130 fix(docs): remove incompatible vite override 2026-08-19 19:40:41 +02:00
Daniel Radl 2bb1a0af71
Merge pull request #1965 from frappe/dependabot/npm_and_yarn/docs/vitepress-2.0.0-alpha.19
chore(deps-dev): bump vitepress from 2.0.0-alpha.16 to 2.0.0-alpha.19 in /docs
2026-08-19 18:55:44 +02:00
dependabot[bot] f352b45917
chore(deps-dev): bump vitepress in /docs
Bumps [vitepress](https://github.com/vuejs/vitepress) from 2.0.0-alpha.16 to 2.0.0-alpha.19.
- [Release notes](https://github.com/vuejs/vitepress/releases)
- [Changelog](https://github.com/vuejs/vitepress/blob/main/CHANGELOG.md)
- [Commits](https://github.com/vuejs/vitepress/compare/v2.0.0-alpha.16...v2.0.0-alpha.19)

---
updated-dependencies:
- dependency-name: vitepress
  dependency-version: 2.0.0-alpha.19
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-19 16:54:12 +00:00
Daniel Radl e467896f9f
Merge pull request #1964 from frappe/dependabot/npm_and_yarn/docs/docs-minor-patch-f79b41a4f8
chore(deps-dev): bump vitepress-sidebar from 1.33.1 to 1.38.0 in /docs in the docs-minor-patch group across 1 directory
2026-08-19 18:52:01 +02:00
dependabot[bot] b7f9e82e55
chore(deps-dev): bump vitepress-sidebar
Bumps the docs-minor-patch group with 1 update in the /docs directory: [vitepress-sidebar](https://github.com/jooy2/vitepress-sidebar).


Updates `vitepress-sidebar` from 1.33.1 to 1.38.0
- [Changelog](https://github.com/jooy2/vitepress-sidebar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jooy2/vitepress-sidebar/commits)

---
updated-dependencies:
- dependency-name: vitepress-sidebar
  dependency-version: 1.38.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: docs-minor-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-19 16:46:40 +00:00
dependabot[bot] e5a043a8e4
chore(deps): bump prettier
Bumps the pre-commit-hooks group with 1 update in the / directory: prettier.


Updates `prettier` from 3.5.2 to 3.9.6

---
updated-dependencies:
- dependency-name: prettier
  dependency-version: 3.9.6
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: pre-commit-hooks
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-19 16:46:35 +00:00
Daniel Radl 497ca9553f
chore(deps): exclude devcontainer from Dependabot updates
Removed Docker Compose configuration from Dependabot.
2026-08-19 18:45:31 +02:00
Daniel Radl 42f8c5153b
Merge pull request #1961 from AMR-Mannesmann/chore(deps)-improve-Dependabot-update-configuration
chore(deps): improve Dependabot update configuration
2026-08-19 18:38:48 +02:00
Daniel Radl abc10ef1d9
chore(deps): improve Dependabot update configuration
Refine Dependabot configuration to reduce update noise and improve
dependency coverage.

- run routine dependency updates weekly instead of daily
- group minor and patch GitHub Actions updates
- add dependency updates for the docs pnpm project
- add Docker Compose updates for the devcontainer example
- add pre-commit hook updates
- remove Docker update entries that rely on parameterized base images
2026-08-19 18:37:02 +02:00
Daniel Radl 745e9f626b
Merge pull request #1960 from AMR-Mannesmann/fix(actions)-sign-pre-commit-autoupdate-commits
fix(actions): sign pre-commit autoupdate commits
2026-08-19 17:38:06 +02:00
Daniel Radl 9e3bb167ed
fix(actions): sign pre-commit autoupdate commits 2026-08-19 17:36:11 +02:00
github-actions 0423a70eb0 chore: Update example.env 2026-08-18 10:32:28 +00:00
github-actions a8567b5c2c chore: Update example.env 2026-08-18 08:05:00 +00:00
Daniel Radl 600744eb07
Merge pull request #1957 from frappe/pre-commit-autoupdate
chore(deps): Update pre-commit hooks
2026-08-14 15:36:08 +02:00
vrslev 1a92129396 chore(deps): Update pre-commit hooks 2026-08-14 08:06:23 +00:00
github-actions 9bde898197 chore: Update example.env 2026-08-14 06:52:04 +00:00
github-actions e33f185a0c chore: Update example.env 2026-08-11 23:53:05 +00:00
github-actions 4546724524 chore: Update example.env 2026-08-06 08:47:32 +00:00
Daniel Radl 8033b5deee
Merge pull request #1953 from AMR-Mannesmann/fix(devcontainer)-rely-on-VS-Code-port-forwarding
fix(devcontainer): rely on VS Code port forwarding
2026-08-05 10:50:20 +02:00
Daniel Radl 24ca002149
Merge pull request #1954 from frappe/dependabot/github_actions/docker/login-action-4.6.0
chore(deps): bump docker/login-action from 4.5.2 to 4.6.0
2026-08-05 10:44:16 +02:00
dependabot[bot] 05baf735ef
chore(deps): bump docker/login-action from 4.5.2 to 4.6.0
Bumps [docker/login-action](https://github.com/docker/login-action) from 4.5.2 to 4.6.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v4.5.2...v4.6.0)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-version: 4.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-05 08:23:30 +00:00
github-actions 3061850fef chore: Update example.env 2026-08-04 21:06:30 +00:00
Daniel Radl 17defa56e7
Merge pull request #1950 from frappe/dependabot/github_actions/docker/login-action-4.5.2
chore(deps): bump docker/login-action from 4 to 4.5.2
2026-08-04 17:54:55 +02:00
daniel.radl 66ce39eb18 fix(devcontainer): rely on VS Code port forwarding 2026-08-03 19:37:59 +02:00
dependabot[bot] 99cc22dd5c
chore(deps): bump docker/login-action from 4 to 4.5.2
Bumps [docker/login-action](https://github.com/docker/login-action) from 4 to 4.5.2.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v4...v4.5.2)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-version: 4.5.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-31 08:23:24 +00:00
github-actions f137f05d79 chore: Update example.env 2026-07-29 00:05:40 +00:00
RocketQuack 412de117d9
Merge pull request #1947 from frappe/dependabot/github_actions/actions/stale-11
chore(deps): bump actions/stale from 10 to 11
2026-07-28 13:44:28 +02:00
dependabot[bot] a23291e1e5
chore(deps): bump actions/stale from 10 to 11
Bumps [actions/stale](https://github.com/actions/stale) from 10 to 11.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v10...v11)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-version: '11'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-28 08:22:21 +00:00
Daniel Radl 3562e51258
Merge pull request #1946 from frappe/pre-commit-autoupdate
chore(deps): Update pre-commit hooks
2026-07-24 20:11:26 +02:00
vrslev 356ebff678 chore(deps): Update pre-commit hooks 2026-07-24 09:14:11 +00:00
Daniel Radl bdce6491d8
Merge pull request #1945 from AMR-Mannesmann/fix(actions)-Autoupdate-pre-commit
fix(actions): replace deprecated pre-commit-autoupdate
2026-07-23 12:31:35 +02:00
Daniel Radl efdbc190d0 fix(actions): replace deprecated pre-commit-autoupdate 2026-07-23 12:25:42 +02:00
Daniel Radl 743d7b7cde
Merge pull request #1942 from frappe/dependabot/github_actions/actions/setup-python-7
chore(deps): bump actions/setup-python from 6 to 7
2026-07-23 11:22:39 +02:00
Daniel Radl b36e169439
Merge pull request #1941 from frappe/dependabot/github_actions/actions/setup-go-7
chore(deps): bump actions/setup-go from 6 to 7
2026-07-23 11:21:14 +02:00
Daniel Radl c801ecea16
Merge pull request #1944 from innerfly/fix/pwd-yml-configurator-dependency
fix(pwd.yml): add configurator dependency to backend services; check for existing site before creation
2026-07-23 11:20:33 +02:00
innerfly ffe6f09bb1 fix(pwd.yml): check for existing site before creation instead of using --force 2026-07-23 07:32:08 +03:00
innerfly 4b64577ffb fix(pwd.yml): add configurator dependency and force flag for site creation
- Add depends_on: configurator with condition: service_completed_successfully to backend, queue-long, queue-short, scheduler, websocket services
- Add --force flag to bench new-site in create-site service to handle existing site
- Add backend dependency to frontend service
2026-07-23 07:19:53 +03:00
github-actions 0693275898 chore: Update example.env 2026-07-22 00:51:17 +00:00
dependabot[bot] ae16ed322e
chore(deps): bump actions/setup-python from 6 to 7
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 6 to 7.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-20 08:22:35 +00:00
dependabot[bot] 89a8475ec6
chore(deps): bump actions/setup-go from 6 to 7
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 6 to 7.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-16 08:22:29 +00:00
github-actions c004361e79 chore: Update example.env 2026-07-15 02:58:50 +00:00
RocketQuack e10324b2e4
Merge pull request #1940 from frappe/dependabot/github_actions/actions/setup-node-7
chore(deps): bump actions/setup-node from 6 to 7
2026-07-14 10:44:03 +02:00
dependabot[bot] 7b31c5007a
chore(deps): bump actions/setup-node from 6 to 7
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 6 to 7.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-14 08:26:40 +00:00
github-actions ae77fa04e4 chore: Update example.env 2026-07-13 08:14:55 +00:00
39 changed files with 2273 additions and 916 deletions

View File

@ -3,24 +3,57 @@ updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
interval: weekly
groups:
actions-minor-patch:
patterns:
- "*"
update-types:
- minor
- patch
- package-ecosystem: docker
directory: images/bench
schedule:
interval: daily
interval: weekly
- package-ecosystem: docker
directory: images/production
- package-ecosystem: docker-compose
directory: /overrides
schedule:
interval: daily
- package-ecosystem: docker
directory: images/custom
schedule:
interval: daily
interval: weekly
allow:
- dependency-name: nginxproxy/acme-companion
- dependency-name: nginxproxy/nginx-proxy
- dependency-name: traefik
groups:
proxy-images:
patterns:
- nginxproxy/acme-companion
- nginxproxy/nginx-proxy
- traefik
- package-ecosystem: pip
directory: /
schedule:
interval: daily
interval: weekly
- package-ecosystem: npm
directory: /docs
schedule:
interval: weekly
groups:
docs-minor-patch:
patterns:
- "*"
update-types:
- minor
- patch
- package-ecosystem: pre-commit
directory: /
schedule:
interval: weekly
groups:
pre-commit-hooks:
patterns:
- "*"

150
.github/scripts/validate_compose.py vendored Normal file
View File

@ -0,0 +1,150 @@
"""Validate every supported Docker Compose override combination."""
import json
import os
import subprocess
import sys
from pathlib import Path
from typing import Dict, List
ROOT = Path(__file__).resolve().parents[2]
MATRIX_PATH = ROOT / "tests" / "compose-configs.json"
OVERRIDES_PATH = ROOT / "overrides"
def fail(message: str) -> None:
print(f"Compose validation configuration error: {message}", file=sys.stderr)
raise SystemExit(1)
def load_matrix() -> Dict[str, object]:
try:
matrix = json.loads(MATRIX_PATH.read_text(encoding="utf-8"))
except (OSError, json.JSONDecodeError) as exc:
fail(f"cannot read {MATRIX_PATH.relative_to(ROOT)}: {exc}")
if not isinstance(matrix, dict):
fail("the matrix root must be a JSON object")
environment = matrix.get("environment")
configurations = matrix.get("configurations")
if not isinstance(environment, dict):
fail("'environment' must be a JSON object")
if not isinstance(configurations, list) or not configurations:
fail("'configurations' must be a non-empty JSON array")
return matrix
def validate_matrix(configurations: List[object]) -> None:
names = set()
covered_overrides = set()
for index, configuration in enumerate(configurations, start=1):
if not isinstance(configuration, dict):
fail(f"configuration #{index} must be a JSON object")
name = configuration.get("name")
files = configuration.get("files")
if not isinstance(name, str) or not name:
fail(f"configuration #{index} needs a non-empty 'name'")
if name in names:
fail(f"configuration name '{name}' is duplicated")
names.add(name)
if not isinstance(files, list) or not files:
fail(f"configuration '{name}' needs a non-empty 'files' array")
if len(files) != len(set(files)):
fail(f"configuration '{name}' references a file more than once")
for filename in files:
if not isinstance(filename, str):
fail(f"configuration '{name}' contains a non-string file name")
path = ROOT / filename
if not path.is_file():
fail(f"configuration '{name}' references missing file '{filename}'")
if path.parent == OVERRIDES_PATH:
covered_overrides.add(path.relative_to(ROOT).as_posix())
existing_overrides = {
path.relative_to(ROOT).as_posix()
for path in OVERRIDES_PATH.glob("compose.*.yaml")
}
uncovered_overrides = sorted(existing_overrides - covered_overrides)
if uncovered_overrides:
formatted = "\n - ".join(uncovered_overrides)
fail(
"every override must be covered by at least one configuration in "
f"{MATRIX_PATH.relative_to(ROOT)}. Add:\n - {formatted}"
)
def validate_compose(
configurations: List[object], environment: Dict[str, object]
) -> int:
compose_environment = os.environ.copy()
for key, value in environment.items():
if not isinstance(key, str) or not isinstance(value, str):
fail("all 'environment' keys and values must be strings")
compose_environment[key] = value
failures = 0
total = len(configurations)
for index, configuration in enumerate(configurations, start=1):
name = configuration["name"]
files = configuration["files"]
command = [
"docker",
"compose",
"--project-directory",
str(ROOT),
"--env-file",
str(ROOT / "example.env"),
]
for filename in files:
command.extend(("-f", str(ROOT / filename)))
command.extend(("config", "--quiet"))
print(f"[{index}/{total}] Validating {name}")
try:
result = subprocess.run(
command,
cwd=ROOT,
env=compose_environment,
text=True,
capture_output=True,
check=False,
)
except FileNotFoundError:
fail("Docker Compose is required, but the 'docker' command was not found")
if result.returncode:
failures += 1
print(f"FAILED: {name}", file=sys.stderr)
if result.stdout:
print(result.stdout.rstrip(), file=sys.stderr)
if result.stderr:
print(result.stderr.rstrip(), file=sys.stderr)
if failures:
print(
f"{failures} of {total} Compose configurations failed validation.",
file=sys.stderr,
)
return 1
print(f"Validated {total} Compose configurations.")
return 0
def main() -> int:
matrix = load_matrix()
configurations = matrix["configurations"]
environment = matrix["environment"]
validate_matrix(configurations)
return validate_compose(configurations, environment)
if __name__ == "__main__":
raise SystemExit(main())

View File

@ -156,7 +156,7 @@ jobs:
- name: Login to GHCR
if: ${{ inputs.push && inputs.registry == 'ghcr.io' }}
uses: docker/login-action@v4
uses: docker/login-action@v4.6.0
with:
registry: ghcr.io
username: ${{ github.actor }}
@ -164,7 +164,7 @@ jobs:
- name: Login to target registry
if: ${{ inputs.push && inputs.registry != 'ghcr.io' }}
uses: docker/login-action@v4
uses: docker/login-action@v4.6.0
with:
registry: ${{ inputs.registry }}
username: ${{ secrets.REGISTRY_USERNAME }}

View File

@ -9,4 +9,5 @@ jobs:
permissions:
contents: read
packages: write
security-events: write
secrets: inherit

View File

@ -9,4 +9,5 @@ jobs:
permissions:
contents: write
packages: write
security-events: write
secrets: inherit

View File

@ -45,7 +45,7 @@ jobs:
- name: Login
if: ${{ github.repository == 'frappe/frappe_docker' && github.event_name != 'pull_request' }}
uses: docker/login-action@v4
uses: docker/login-action@v4.6.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

View File

@ -3,6 +3,7 @@ name: Core / Build Develop
permissions:
contents: read
packages: write
security-events: write
on:
workflow_call:
@ -22,8 +23,8 @@ on:
- .github/workflows/core-publish-images.yml
schedule:
# Every day at 12:00 pm
- cron: 0 0 * * *
# Every Monday at 03:17 UTC
- cron: "17 3 * * 1"
workflow_dispatch:
@ -33,8 +34,8 @@ jobs:
with:
repo: erpnext
version: develop
python_version: 3.14.2
node_version: 24.12.0
python_version: "3.14"
node_version: "24"
publish:
if: ${{ github.repository == 'frappe/frappe_docker' && github.event_name != 'pull_request' }}
@ -44,8 +45,8 @@ jobs:
repo: erpnext
frappe_version: ${{ needs.test.outputs.frappe_version }}
erpnext_version: ${{ needs.test.outputs.erpnext_version }}
python_version: 3.14.2
node_version: 24.12.0
python_version: "3.14"
node_version: "24"
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}

View File

@ -3,6 +3,7 @@ name: Core / Build Stable
permissions:
contents: read
packages: write
security-events: write
on:
workflow_call:
@ -46,8 +47,8 @@ jobs:
with:
repo: erpnext
version: "15"
python_version: 3.11.6
node_version: 20.19.2
python_version: "3.11"
node_version: "22"
v15_publish:
if: ${{ github.repository == 'frappe/frappe_docker' && github.event_name != 'pull_request' }}
@ -57,8 +58,8 @@ jobs:
repo: erpnext
frappe_version: ${{ needs.v15_test.outputs.frappe_version }}
erpnext_version: ${{ needs.v15_test.outputs.erpnext_version }}
python_version: 3.11.6
node_version: 20.19.2
python_version: "3.11"
node_version: "22"
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
@ -68,8 +69,8 @@ jobs:
with:
repo: erpnext
version: "16"
python_version: 3.14.2
node_version: 24.12.0
python_version: "3.14"
node_version: "24"
v16_publish:
if: ${{ github.repository == 'frappe/frappe_docker' && github.event_name != 'pull_request' }}
needs: v16_test
@ -78,8 +79,8 @@ jobs:
repo: erpnext
frappe_version: ${{ needs.v16_test.outputs.frappe_version }}
erpnext_version: ${{ needs.v16_test.outputs.erpnext_version }}
python_version: 3.14.2
node_version: 24.12.0
python_version: "3.14"
node_version: "24"
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
@ -97,9 +98,9 @@ jobs:
uses: actions/checkout@v7
- name: Setup Python
uses: actions/setup-python@v6
uses: actions/setup-python@v7
with:
python-version: "3.14.2"
python-version: "3.14"
- name: Get latest versions
run: python3 ./.github/scripts/get_latest_tags.py --repo erpnext --version 16

View File

@ -29,6 +29,7 @@ on:
permissions:
contents: read
security-events: write
jobs:
resolve:
@ -94,10 +95,131 @@ jobs:
env:
REGISTRY_USER: localhost:5000/frappe
- name: Setup Python
uses: actions/setup-python@v6
- name: Create Trivy report directory
run: mkdir -p trivy-results
- name: Scan base image
id: trivy_base
continue-on-error: true
uses: aquasecurity/trivy-action@v0.36.0
with:
python-version: "3.10"
image-ref: localhost:5000/frappe/base:${{ env.FRAPPE_VERSION }}
scanners: vuln
format: sarif
output: trivy-results/base.sarif
severity: HIGH,CRITICAL
ignore-unfixed: true
limit-severities-for-sarif: true
exit-code: 0
- name: Scan build image
if: ${{ env.ERPNEXT_VERSION != '' }}
id: trivy_build
continue-on-error: true
uses: aquasecurity/trivy-action@v0.36.0
with:
image-ref: localhost:5000/frappe/build:${{ env.ERPNEXT_VERSION }}
scanners: vuln
format: sarif
output: trivy-results/build.sarif
severity: HIGH,CRITICAL
ignore-unfixed: true
limit-severities-for-sarif: true
exit-code: 0
skip-setup-trivy: true
- name: Scan ERPNext image
if: ${{ env.ERPNEXT_VERSION != '' }}
id: trivy_erpnext
continue-on-error: true
uses: aquasecurity/trivy-action@v0.36.0
with:
image-ref: localhost:5000/frappe/erpnext:${{ env.ERPNEXT_VERSION }}
scanners: vuln
format: sarif
output: trivy-results/erpnext.sarif
severity: HIGH,CRITICAL
ignore-unfixed: true
limit-severities-for-sarif: true
exit-code: 0
skip-setup-trivy: true
- name: Upload Trivy report artifact
if: ${{ always() && hashFiles('trivy-results/*.sarif') != '' }}
continue-on-error: true
uses: actions/upload-artifact@v7
with:
name: trivy-${{ inputs.version }}-${{ matrix.arch }}
path: trivy-results/*.sarif
retention-days: 30
- name: Add Trivy results to pull request summary
if: ${{ always() && github.event_name == 'pull_request' && hashFiles('trivy-results/*.sarif') != '' }}
continue-on-error: true
shell: bash
run: |
python3 - <<'PY'
import json
import os
from pathlib import Path
maximum_results = 50
reports = sorted(Path("trivy-results").glob("*.sarif"))
summary_path = Path(os.environ["GITHUB_STEP_SUMMARY"])
with summary_path.open("a", encoding="utf-8") as summary:
summary.write("## Trivy image findings\n\n")
for report in reports:
payload = json.loads(report.read_text(encoding="utf-8"))
results = [
result
for run in payload.get("runs", [])
for result in run.get("results", [])
]
summary.write(f"### `{report.stem}`: {len(results)} finding(s)\n\n")
if not results:
summary.write("No fixed HIGH or CRITICAL vulnerabilities found.\n\n")
continue
for result in results[:maximum_results]:
rule = str(result.get("ruleId", "unknown")).replace("`", "")
level = str(result.get("level", "warning")).upper()
message = " ".join(
str(result.get("message", {}).get("text", "No details"))
.replace("`", "")
.split()
)
summary.write(f"- **{level}** `{rule}`: {message}\n")
if len(results) > maximum_results:
hidden = len(results) - maximum_results
summary.write(
f"\n{hidden} additional finding(s) are available in the "
"Trivy SARIF artifact.\n"
)
summary.write("\n")
PY
- name: Upload v16 amd64 build results to code scanning on main
if: >-
${{
always() &&
inputs.version == '16' &&
matrix.arch == 'amd64' &&
github.ref == 'refs/heads/main' &&
github.event_name == 'push' &&
hashFiles('trivy-results/build.sarif') != ''
}}
continue-on-error: true
uses: github/codeql-action/upload-sarif@v4
with:
sarif_file: trivy-results/build.sarif
category: trivy-v16-amd64-build
- name: Setup Python
uses: actions/setup-python@v7
with:
python-version: "3.14"
- name: Install dependencies
run: |

View File

@ -64,7 +64,7 @@ jobs:
echo "NODE_VERSION=${{ inputs.node_version }}" >> "$GITHUB_ENV"
- name: Login to Docker Hub
uses: docker/login-action@v4
uses: docker/login-action@v4.6.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
@ -76,7 +76,7 @@ jobs:
set: "*.platform=linux/amd64,linux/arm64"
- name: Login to GHCR
uses: docker/login-action@v4
uses: docker/login-action@v4.6.0
with:
registry: ghcr.io
username: ${{ github.actor }}

View File

@ -1,6 +1,12 @@
name: Docs / Publish Site
on:
pull_request:
branches: [main]
paths:
- "docs/**"
- ".github/workflows/docs-publish-site.yml"
merge_group:
push:
branches: [main]
paths:
@ -10,19 +16,18 @@ on:
permissions:
contents: read
pages: write
id-token: write
defaults:
run:
working-directory: ./docs
concurrency:
group: pages
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-deploy:
docs-build:
name: Docs / Build
runs-on: ubuntu-latest
strategy:
matrix:
@ -33,7 +38,7 @@ jobs:
uses: actions/checkout@v7
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
uses: actions/setup-node@v7
with:
node-version: ${{ matrix.node-version }}
@ -57,10 +62,24 @@ jobs:
run: pnpm docs:build
- name: Upload artifact
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
uses: actions/upload-pages-artifact@v5
with:
path: docs/.vitepress/dist
deploy:
name: Docs / Deploy
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
needs: docs-build
runs-on: ubuntu-latest
concurrency:
group: pages
cancel-in-progress: true
permissions:
pages: write
id-token: write
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5

View File

@ -16,13 +16,13 @@ jobs:
uses: actions/checkout@v7
- name: Setup Python
uses: actions/setup-python@v6
uses: actions/setup-python@v7
with:
python-version: "3.10.6"
python-version: "3.14"
# For shfmt pre-commit hook
- name: Setup Go
uses: actions/setup-go@v6
uses: actions/setup-go@v7
with:
go-version: "^1.14"

View File

@ -1,26 +0,0 @@
name: Autoupdate pre-commit hooks
on:
schedule:
# Every day at 7 am
- cron: 0 7 * * *
jobs:
pre-commit-autoupdate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Update pre-commit hooks
uses: vrslev/pre-commit-autoupdate@v1.0.0
- name: Create Pull Request
uses: peter-evans/create-pull-request@v8
with:
branch: pre-commit-autoupdate
title: "chore(deps): Update pre-commit hooks"
commit-message: "chore(deps): Update pre-commit hooks"
body: Update pre-commit hooks
labels: dependencies,development
delete-branch: True

View File

@ -9,7 +9,7 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v10
- uses: actions/stale@v11
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: This issue has been automatically marked as stale. You have a week to explain why you believe this is an error.

8
.hadolint.yaml Normal file
View File

@ -0,0 +1,8 @@
# Keep existing warnings visible without making all current pull requests fail.
# Raise high-confidence container safety rules to errors so they remain blocking.
failure-threshold: error
override:
error:
- DL3002
- DL3006
- DL3007

View File

@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
@ -8,18 +8,18 @@ repos:
- id: end-of-file-fixer
- repo: https://github.com/asottile/pyupgrade
rev: v3.19.1
rev: v3.21.2
hooks:
- id: pyupgrade
args: [--py37-plus]
- repo: https://github.com/psf/black
rev: 25.1.0
rev: 26.5.1
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: 6.0.1
rev: 9.0.1
hooks:
- id: isort
@ -29,10 +29,10 @@ repos:
- id: prettier
exclude: ^docs/pnpm-lock\.yaml$
additional_dependencies:
- prettier@3.5.2
- prettier@3.9.6
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
rev: v2.4.3
hooks:
- id: codespell
exclude: ^docs/pnpm-lock\.yaml$
@ -51,7 +51,31 @@ repos:
types: [shell]
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
rev: v0.11.0.1
hooks:
- id: shellcheck
args: [-x]
- repo: local
hooks:
- id: hadolint
name: hadolint
description: Lint Dockerfiles and Containerfiles with Hadolint
language: docker_image
entry: ghcr.io/hadolint/hadolint:v2.15.1 hadolint
types: [dockerfile]
- id: validate-compose
name: validate compose configurations
description: Validate every supported Docker Compose override combination
language: system
entry: python .github/scripts/validate_compose.py
pass_filenames: false
files: >-
(?x)^(
compose\.yaml|
example\.env|
overrides/compose\..*\.yaml|
tests/compose-configs\.json|
\.github/scripts/validate_compose\.py
)$

View File

@ -1,6 +1,24 @@
{
"name": "Frappe Bench",
"forwardPorts": [8000, 9000, 6787],
"portsAttributes": {
"8000-8099": {
"label": "Frappe web",
"protocol": "http",
"onAutoForward": "notify"
},
"9000-9099": {
"label": "Frappe realtime",
"onAutoForward": "silent"
},
"6787": {
"label": "Frappe asset watcher",
"onAutoForward": "silent"
}
},
"otherPortsAttributes": {
"onAutoForward": "ignore"
},
"remoteUser": "frappe",
"customizations": {
"vscode": {
@ -15,6 +33,10 @@
"charliermarsh.ruff"
],
"settings": {
"remote.autoForwardPorts": true,
"remote.autoForwardPortsSource": "process",
"remote.restoreForwardedPorts": true,
"remote.localPortHost": "localhost",
"terminal.integrated.profiles.linux": {
"frappe bash": {
"path": "/bin/bash"

View File

@ -52,9 +52,7 @@ services:
# Enable if you require git cloning
# - ${HOME}/.ssh:/home/frappe/.ssh
working_dir: /workspace/development
ports:
- 8000-8005:8000-8005
- 9000-9005:9000-9005
# Development ports are forwarded by devcontainer.json.
# enable the below service if you need Cypress UI Tests to be executed
# Before enabling ensure install_x11_deps.sh has been executed and display variable is exported.
# Run install_x11_deps.sh again if DISPLAY is not set

View File

@ -6,10 +6,10 @@ variable "REGISTRY_USER" {
}
variable PYTHON_VERSION {
default = "3.14.2"
default = "3.14"
}
variable NODE_VERSION {
default = "24.13.0"
default = "24"
}
variable "FRAPPE_VERSION" {

View File

@ -1,4 +1,5 @@
import { defineConfig, UserConfig } from "vitepress";
import { withMermaid } from "vitepress-mermaid-viewer";
import { withSidebar } from "vitepress-sidebar";
// https://vitepress.dev/reference/site-config
@ -7,6 +8,9 @@ const vitePressOptions: UserConfig = {
description: "Frappe in a Container",
base: "/frappe_docker/",
head: [["link", { rel: "icon", href: "/frappe_docker/favicon.png" }]],
mermaid: {
securityLevel: "strict",
},
themeConfig: {
logo: "/frappe-docker.png",
// https://vitepress.dev/reference/default-theme-config
@ -24,6 +28,6 @@ const vitePressSidebarOptions = {
useFolderTitleFromIndexFile: true,
};
export default defineConfig(
withSidebar(vitePressOptions, vitePressSidebarOptions),
export default withMermaid(
defineConfig(withSidebar(vitePressOptions, vitePressSidebarOptions)),
);

View File

@ -17,7 +17,7 @@ e.g. `port-site-1`, `port-site-2`, `port-site-3`.
```yaml
# ... removed for brevity
services:
# ... removed for brevity
# ... removed for brevity
port-site-1:
image: frappe/erpnext:v14.11.1
deploy:

View File

@ -378,7 +378,7 @@ The first command can take a few seconds to be executed, this is to be expected.
## Manually start containers
In case you don't use VSCode, you may start the containers manually with the following command:
The example configuration forwards development ports through VS Code and does not publish them through Docker. If you don't use VS Code, first follow the [CLI-only port configuration](04-alternate-setup.md#configure-ports-for-cli-only-use), then start the containers manually:
### Running the containers

View File

@ -66,6 +66,24 @@ This gives you `.devcontainer/docker-compose.yml` which defines all the services
- `redis-cache` — cache layer
- `redis-queue` — background job queue
### Configure ports for CLI-only use
The example configuration is intended for VS Code Dev Containers and forwards development ports through VS Code. Because this setup runs Docker Compose directly, add the following environment variable and loopback-only port mappings to the `frappe` service in `.devcontainer/docker-compose.yml`:
```yaml
services:
frappe:
# ... existing config
environment:
- SHELL=/bin/bash
- FRAPPE_BIND_ADDR=0.0.0.0
ports:
- "127.0.0.1:8000-8005:8000-8005"
- "127.0.0.1:9000-9005:9000-9005"
```
Frappe's development server binds to `127.0.0.1` by default. `FRAPPE_BIND_ADDR=0.0.0.0` makes it reachable through Docker's port mappings, while binding the published ports to `127.0.0.1` keeps them accessible only from your local machine.
---
## Step 4 — Add ARM64 Platform to All Services
@ -121,16 +139,18 @@ Error response from daemon: failed to set up container networking: driver failed
- Check if the port is being used by another service with `lsof -i :PORT`
> Usually on MacOS ports 8000 and 9000 are usually reserved for system use
- Go to line 60 and 61 under the `frappe` service and change the ports
- Change the host-side port ranges under the `frappe` service
Eg:
```
```yaml
ports:
- 8001-8005:8001-8005
- 9002-9005:9002-9005
- "127.0.0.1:8100-8105:8000-8005"
- "127.0.0.1:9100-9105:9000-9005"
```
With this example, open the first site on port `8100` instead of `8000`.
---
## Step 6 — Enter the Development Container

View File

@ -21,6 +21,7 @@ They decide when the core image pipeline runs.
- resolves the image versions for the requested release line
- builds the shared core images into a local registry
- scans the locally built images with Trivy
- runs the test suite against those images
`core-publish-images.yml` is the reusable workflow that:
@ -60,10 +61,11 @@ flowchart TD
B[core-build-test-images.yml]
C[Resolve versions]
D[Build local test images]
E[Run pytest]
F[core-publish-images.yml]
G[Push Docker Hub: erpnext, base, build]
H[Push GHCR: base, build]
E[Scan images with Trivy]
F[Run pytest]
G[core-publish-images.yml]
H[Push Docker Hub: erpnext, base, build]
O[Push GHCR: base, build]
A --> B
B --> C
@ -71,7 +73,8 @@ flowchart TD
D --> E
E --> F
F --> G
F --> H
G --> H
G --> O
end
subgraph App["Downstream app flow"]
@ -89,8 +92,8 @@ flowchart TD
M --> N
end
G --> J
H --> J
O --> J
```
More concretely:
@ -99,6 +102,7 @@ More concretely:
core-build-test-images.yml
-> resolves frappe and erpnext tags
-> builds images into a local CI registry
-> scans the locally built images with Trivy
-> runs tests
core-publish-images.yml

View File

@ -0,0 +1,97 @@
---
title: Container Validation
---
This repository validates its Dockerfiles, supported Compose configurations, and
built container images at different stages of development.
# Local checks
The lint workflow runs the repository's pre-commit hooks on every pull request.
Run the same checks locally before committing:
```shell
pre-commit run --all-files
```
To run only the container-related checks:
```shell
pre-commit run hadolint --all-files
pre-commit run validate-compose --all-files
```
The Hadolint hook uses a pinned container image, so it requires a working Docker
daemon. The Compose validator requires Docker Compose, but it only renders the
configuration and does not start containers.
# Dockerfile linting
Hadolint checks every Dockerfile and Containerfile through pre-commit and the
existing lint workflow. The policy is defined in `.hadolint.yaml`.
The initial policy keeps existing warnings visible while only errors fail the
check. It also promotes these high-confidence rules to errors:
- `DL3002`: the final container user must not be root
- `DL3006`: base images must have an explicit tag
- `DL3007`: base images must not use the `latest` tag
This allows warnings to be fixed incrementally without making unrelated pull
requests fail immediately. The failure threshold can be tightened after the
existing findings have been addressed.
# Compose configuration registry
`tests/compose-configs.json` is the registry of supported Compose combinations.
`.github/scripts/validate_compose.py` renders every entry with `docker compose
config --quiet` and fails if Docker Compose cannot merge the files.
The validator also checks that every `overrides/compose.*.yaml` file is included
in at least one registered configuration. This keeps adding a new override
simple and makes it difficult to forget its validation case.
When adding an override:
1. Add `overrides/compose.<name>.yaml`.
2. Add the override to at least one realistic entry in
`tests/compose-configs.json`.
3. Add harmless placeholder values to the entry's `environment` object if the
override introduces required variables that are not in `example.env`.
4. Run `python .github/scripts/validate_compose.py`.
Configurations are kept in one declarative registry and are evaluated in a
single lint job. This avoids creating a separate GitHub Actions matrix job for
every small Compose combination while preserving matrix-like coverage.
# Container image scanning
The core build workflow scans the locally built `base`, `build`, and `erpnext`
images with Trivy for each supported architecture. Reports contain fixed
`HIGH` and `CRITICAL` operating-system and application dependency
vulnerabilities.
During the initial rollout, Trivy is report-only:
- findings do not fail the build
- SARIF reports are retained as workflow artifacts for 30 days
- pull requests show a capped findings list in the workflow summary and retain
the complete SARIF reports as artifacts
- only the version 16 AMD64 `build` image report is uploaded to GitHub Code
Scanning, and only on pushes to `main`; complete reports for every image and
architecture remain available as workflow artifacts
This provides visibility before deciding which vulnerability classes should
become blocking.
# Proxy image updates
Dependabot checks the Compose files in `overrides` each week and groups updates
for these externally managed proxy images:
- `nginxproxy/nginx-proxy`
- `nginxproxy/acme-companion`
- `traefik`
Database and Redis image versions are intentionally excluded because their
supported versions are defined by the Frappe framework.

View File

@ -1,7 +1,9 @@
{
"devDependencies": {
"vitepress": "2.0.0-alpha.16",
"vitepress-sidebar": "1.33.1"
"mermaid": "11.17.2",
"vitepress": "2.0.0-alpha.19",
"vitepress-mermaid-viewer": "0.5.0",
"vitepress-sidebar": "1.39.0"
},
"scripts": {
"docs:dev": "vitepress dev",
@ -10,7 +12,6 @@
},
"pnpm": {
"overrides": {
"vite": "7.3.2",
"minimatch": "10.2.5",
"picomatch": "4.0.4"
}

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
# Reference: https://github.com/frappe/frappe_docker/blob/main/docs/02-setup/04-env-variables.md
ERPNEXT_VERSION=v16.26.2
ERPNEXT_VERSION=v16.34.1
DB_PASSWORD=123

View File

@ -105,8 +105,8 @@ USER frappe
WORKDIR /home/frappe
# Install Python via pyenv
ENV PYTHON_VERSION_PREV=3.12.12
ENV PYTHON_VERSION=3.14.2
ENV PYTHON_VERSION_PREV=3.12
ENV PYTHON_VERSION=3.14
ENV PYENV_ROOT=/home/frappe/.pyenv
ENV PATH=$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
@ -132,20 +132,21 @@ RUN git clone ${GIT_REPO} --depth 1 -b ${GIT_BRANCH} .bench \
&& echo "export BENCH_DEVELOPER=1" >>/home/frappe/.bashrc
# Install Node via nvm
ENV NODE_VERSION_PREV=22.22.0
ENV NODE_VERSION=24.13.0
ENV NODE_VERSION_PREV=22
ENV NODE_VERSION=24
ENV NVM_DIR=/home/frappe/.nvm
ENV PATH=${NVM_DIR}/versions/node/v${NODE_VERSION}/bin/:${PATH}
ENV NVM_SYMLINK_CURRENT=true
ENV PATH=${NVM_DIR}/current/bin/:${PATH}
RUN wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash \
RUN wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.6/install.sh | bash \
&& . ${NVM_DIR}/nvm.sh \
&& nvm install ${NODE_VERSION_PREV} \
&& nvm use v${NODE_VERSION_PREV} \
&& nvm use ${NODE_VERSION_PREV} \
&& npm install -g yarn \
&& nvm install ${NODE_VERSION} \
&& nvm use v${NODE_VERSION} \
&& nvm use ${NODE_VERSION} \
&& npm install -g yarn \
&& nvm alias default v${NODE_VERSION} \
&& nvm alias default ${NODE_VERSION} \
&& rm -rf ${NVM_DIR}/.cache \
&& echo 'export NVM_DIR="/home/frappe/.nvm"' >>~/.bashrc \
&& echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc \

View File

@ -1,4 +1,4 @@
ARG PYTHON_VERSION=3.14.2
ARG PYTHON_VERSION=3.14
ARG DEBIAN_BASE=bookworm
FROM python:${PYTHON_VERSION}-slim-${DEBIAN_BASE} AS base
@ -10,9 +10,10 @@ ARG WKHTMLTOPDF_VERSION=0.12.6.1-3
ARG WKHTMLTOPDF_DISTRO=bookworm
ARG INSTALL_CHROMIUM=true
ARG NODE_VERSION=24.13.0
ARG NODE_VERSION=24
ENV NVM_DIR=/home/frappe/.nvm
ENV PATH=${NVM_DIR}/versions/node/v${NODE_VERSION}/bin/:${PATH}
ENV NVM_SYMLINK_CURRENT=true
ENV PATH=${NVM_DIR}/current/bin/:${PATH}
RUN useradd -ms /bin/bash frappe \
&& apt-get update \
@ -44,13 +45,13 @@ RUN useradd -ms /bin/bash frappe \
media-types \
# NodeJS
&& mkdir -p ${NVM_DIR} \
&& curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash \
&& curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.6/install.sh | bash \
&& . ${NVM_DIR}/nvm.sh \
&& nvm install ${NODE_VERSION} \
&& nvm use v${NODE_VERSION} \
&& nvm use ${NODE_VERSION} \
&& npm install -g yarn \
&& corepack enable pnpm \
&& nvm alias default v${NODE_VERSION} \
&& nvm alias default ${NODE_VERSION} \
&& rm -rf ${NVM_DIR}/.cache \
&& echo 'export NVM_DIR="/home/frappe/.nvm"' >>/home/frappe/.bashrc \
&& echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm' >>/home/frappe/.bashrc \

View File

@ -1,4 +1,4 @@
ARG PYTHON_VERSION=3.14.2
ARG PYTHON_VERSION=3.14
ARG DEBIAN_BASE=bookworm
FROM python:${PYTHON_VERSION}-slim-${DEBIAN_BASE} AS base
@ -6,9 +6,10 @@ ARG WKHTMLTOPDF_VERSION=0.12.6.1-3
ARG WKHTMLTOPDF_DISTRO=bookworm
ARG INSTALL_CHROMIUM=true
ARG NODE_VERSION=24.13.0
ARG NODE_VERSION=24
ENV NVM_DIR=/home/frappe/.nvm
ENV PATH=${NVM_DIR}/versions/node/v${NODE_VERSION}/bin/:${PATH}
ENV NVM_SYMLINK_CURRENT=true
ENV PATH=${NVM_DIR}/current/bin/:${PATH}
RUN useradd -ms /bin/bash frappe \
&& apt-get update \
@ -40,13 +41,13 @@ RUN useradd -ms /bin/bash frappe \
media-types \
# NodeJS
&& mkdir -p ${NVM_DIR} \
&& curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash \
&& curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.6/install.sh | bash \
&& . ${NVM_DIR}/nvm.sh \
&& nvm install ${NODE_VERSION} \
&& nvm use v${NODE_VERSION} \
&& nvm use ${NODE_VERSION} \
&& npm install -g yarn \
&& corepack enable pnpm \
&& nvm alias default v${NODE_VERSION} \
&& nvm alias default ${NODE_VERSION} \
&& rm -rf ${NVM_DIR}/.cache \
&& echo 'export NVM_DIR="/home/frappe/.nvm"' >>/home/frappe/.bashrc \
&& echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm' >>/home/frappe/.bashrc \

View File

@ -8,15 +8,17 @@ services:
- traefik.http.routers.frontend-http.rule=${SITES_RULE:?SITES_RULE not set}
proxy:
image: traefik:v3.6
image: traefik:v3.7
restart: unless-stopped
command:
- --providers.docker=true
- --providers.docker.exposedbydefault=false
- --entrypoints.web.address=:80
- --entrypoints.web.http.underscoreHeadersStrategy=delete
- --entrypoints.web.http.redirections.entrypoint.to=websecure
- --entrypoints.web.http.redirections.entrypoint.scheme=https
- --entrypoints.websecure.address=:443
- --entrypoints.websecure.http.underscoreHeadersStrategy=delete
- --certificatesResolvers.main-resolver.acme.httpChallenge=true
- --certificatesResolvers.main-resolver.acme.httpChallenge.entrypoint=web
- --certificatesResolvers.main-resolver.acme.email=${LETSENCRYPT_EMAIL:?No Let's Encrypt email set}

View File

@ -11,7 +11,7 @@ services:
- ${HTTPS_PUBLISH_PORT:-443}:443
acme-companion:
image: nginxproxy/acme-companion:latest
image: nginxproxy/acme-companion:2.8.2
restart: unless-stopped
environment:
DEFAULT_EMAIL: ${LETSENCRYPT_EMAIL:?No LETSENCRYPT_EMAIL set}

View File

@ -5,7 +5,7 @@ services:
VIRTUAL_PORT: 8080
nginx-proxy:
image: nginxproxy/nginx-proxy:alpine
image: nginxproxy/nginx-proxy:1.11.6-alpine
restart: unless-stopped
ports:
- ${HTTP_PUBLISH_PORT:-80}:80

View File

@ -7,12 +7,13 @@ services:
- traefik.http.routers.frontend-http.rule=HostRegexp(`^.+$`)
proxy:
image: traefik:v3.6
image: traefik:v3.7
restart: unless-stopped
command:
- --providers.docker
- --providers.docker.exposedbydefault=false
- --entrypoints.web.address=:80
- --entrypoints.web.http.underscoreHeadersStrategy=delete
ports:
- ${HTTP_PUBLISH_PORT:-80}:80
volumes:

View File

@ -25,8 +25,10 @@ services:
- --providers.docker.exposedbydefault=false
# Create an entrypoint http listening on port 80
- --entrypoints.http.address=:80
- --entrypoints.http.http.underscoreHeadersStrategy=delete
# Create an entrypoint https listening on port 443
- --entrypoints.https.address=:443
- --entrypoints.https.http.underscoreHeadersStrategy=delete
# Create the certificate resolver le for Let's Encrypt, uses the environment variable EMAIL
- --certificatesresolvers.le.acme.email=${EMAIL:?No EMAIL set}
# Store the Let's Encrypt certificates in the mounted volume

View File

@ -1,6 +1,6 @@
services:
traefik:
image: "traefik:v3.6"
image: "traefik:v3.7"
restart: unless-stopped
labels:
# Enable Traefik for this service, to make it available in the public network
@ -26,6 +26,7 @@ services:
- --providers.docker.exposedbydefault=false
# Create an entrypoint http listening on port 80
- --entrypoints.http.address=:80
- --entrypoints.http.http.underscoreHeadersStrategy=delete
# Enable the access log, with HTTP requests
- --accesslog
# Enable the Traefik log, for configurations and errors

38
pwd.yml
View File

@ -1,6 +1,6 @@
services:
backend:
image: frappe/erpnext:v16.26.2
image: frappe/erpnext:v16.34.1
networks:
- frappe_network
deploy:
@ -14,9 +14,12 @@ services:
DB_PORT: "3306"
MYSQL_ROOT_PASSWORD: admin
MARIADB_ROOT_PASSWORD: admin
depends_on:
configurator:
condition: service_completed_successfully
configurator:
image: frappe/erpnext:v16.26.2
image: frappe/erpnext:v16.34.1
networks:
- frappe_network
deploy:
@ -45,7 +48,7 @@ services:
- logs:/home/frappe/frappe-bench/logs
create-site:
image: frappe/erpnext:v16.26.2
image: frappe/erpnext:v16.34.1
networks:
- frappe_network
deploy:
@ -75,7 +78,11 @@ services:
fi
done;
echo "sites/common_site_config.json found";
bench new-site --mariadb-user-host-login-scope='%' --admin-password=admin --db-root-username=root --db-root-password=admin --install-app erpnext --set-default frontend;
if [ -d "sites/frontend" ]; then
echo "Site frontend already exists, skipping creation";
else
bench new-site --mariadb-user-host-login-scope='%' --admin-password=admin --db-root-username=root --db-root-password=admin --install-app erpnext --set-default frontend;
fi;
db:
image: mariadb:11.8
@ -101,11 +108,12 @@ services:
- db-data:/var/lib/mysql
frontend:
image: frappe/erpnext:v16.26.2
image: frappe/erpnext:v16.34.1
networks:
- frappe_network
depends_on:
- websocket
- backend
deploy:
restart_policy:
condition: on-failure
@ -127,7 +135,7 @@ services:
- "8080:8080"
queue-long:
image: frappe/erpnext:v16.26.2
image: frappe/erpnext:v16.34.1
networks:
- frappe_network
deploy:
@ -144,9 +152,12 @@ services:
environment:
FRAPPE_REDIS_CACHE: redis://redis-cache:6379
FRAPPE_REDIS_QUEUE: redis://redis-queue:6379
depends_on:
configurator:
condition: service_completed_successfully
queue-short:
image: frappe/erpnext:v16.26.2
image: frappe/erpnext:v16.34.1
networks:
- frappe_network
deploy:
@ -163,6 +174,9 @@ services:
environment:
FRAPPE_REDIS_CACHE: redis://redis-cache:6379
FRAPPE_REDIS_QUEUE: redis://redis-queue:6379
depends_on:
configurator:
condition: service_completed_successfully
redis-queue:
image: redis:6.2-alpine
@ -183,7 +197,7 @@ services:
condition: on-failure
scheduler:
image: frappe/erpnext:v16.26.2
image: frappe/erpnext:v16.34.1
networks:
- frappe_network
deploy:
@ -195,9 +209,12 @@ services:
volumes:
- sites:/home/frappe/frappe-bench/sites
- logs:/home/frappe/frappe-bench/logs
depends_on:
configurator:
condition: service_completed_successfully
websocket:
image: frappe/erpnext:v16.26.2
image: frappe/erpnext:v16.34.1
networks:
- frappe_network
deploy:
@ -212,6 +229,9 @@ services:
volumes:
- sites:/home/frappe/frappe-bench/sites
- logs:/home/frappe/frappe-bench/logs
depends_on:
configurator:
condition: service_completed_successfully
volumes:
db-data:

142
tests/compose-configs.json Normal file
View File

@ -0,0 +1,142 @@
{
"environment": {
"BASE_SITE": "site-one.localhost",
"BENCH_NETWORK": "bench-network",
"DB_PASSWORD_SECRETS_FILE": "./test-db-password.txt",
"EMAIL": "admin@example.com",
"HASHED_PASSWORD": "not-a-real-password-hash",
"ROUTER": "site-one",
"TRAEFIK_DOMAIN": "traefik.example.com"
},
"configurations": [
{
"name": "mariadb-no-proxy",
"files": [
"compose.yaml",
"overrides/compose.mariadb.yaml",
"overrides/compose.redis.yaml",
"overrides/compose.noproxy.yaml"
]
},
{
"name": "mariadb-secrets",
"files": [
"compose.yaml",
"overrides/compose.mariadb.yaml",
"overrides/compose.mariadb-secrets.yaml",
"overrides/compose.redis.yaml",
"overrides/compose.noproxy.yaml"
]
},
{
"name": "postgres-no-proxy",
"files": [
"compose.yaml",
"overrides/compose.postgres.yaml",
"overrides/compose.redis.yaml",
"overrides/compose.noproxy.yaml"
]
},
{
"name": "traefik-http",
"files": [
"compose.yaml",
"overrides/compose.mariadb.yaml",
"overrides/compose.redis.yaml",
"overrides/compose.proxy.yaml"
]
},
{
"name": "traefik-https",
"files": [
"compose.yaml",
"overrides/compose.mariadb.yaml",
"overrides/compose.redis.yaml",
"overrides/compose.https.yaml"
]
},
{
"name": "nginx-proxy-http",
"files": [
"compose.yaml",
"overrides/compose.mariadb.yaml",
"overrides/compose.redis.yaml",
"overrides/compose.nginxproxy.yaml"
]
},
{
"name": "nginx-proxy-https",
"files": [
"compose.yaml",
"overrides/compose.mariadb.yaml",
"overrides/compose.redis.yaml",
"overrides/compose.nginxproxy.yaml",
"overrides/compose.nginxproxy-ssl.yaml"
]
},
{
"name": "migrator",
"files": [
"compose.yaml",
"overrides/compose.mariadb.yaml",
"overrides/compose.redis.yaml",
"overrides/compose.proxy.yaml",
"overrides/compose.migrator.yaml"
]
},
{
"name": "backup-cron",
"files": [
"compose.yaml",
"overrides/compose.mariadb.yaml",
"overrides/compose.redis.yaml",
"overrides/compose.proxy.yaml",
"overrides/compose.backup-cron.yaml"
]
},
{
"name": "shared-mariadb",
"files": ["overrides/compose.mariadb-shared.yaml"]
},
{
"name": "standalone-traefik-http",
"files": ["overrides/compose.traefik.yaml"]
},
{
"name": "standalone-traefik-https",
"files": [
"overrides/compose.traefik.yaml",
"overrides/compose.traefik-ssl.yaml"
]
},
{
"name": "multi-bench-http",
"files": [
"compose.yaml",
"overrides/compose.redis.yaml",
"overrides/compose.multi-bench.yaml"
]
},
{
"name": "multi-bench-https",
"files": [
"compose.yaml",
"overrides/compose.redis.yaml",
"overrides/compose.multi-bench.yaml",
"overrides/compose.multi-bench-ssl.yaml"
]
},
{
"name": "custom-domain-http",
"files": ["compose.yaml", "overrides/compose.custom-domain.yaml"]
},
{
"name": "custom-domain-https",
"files": [
"compose.yaml",
"overrides/compose.custom-domain.yaml",
"overrides/compose.custom-domain-ssl.yaml"
]
}
]
}