Portainer: deploy from the Git repository (web editor cannot build)

Verified on Portainer 2.45: an inline/web-editor stack with `build: .`
fails with "compose build operation failed: failed to solve: failed to read
dockerfile: open …/Dockerfile: no such file or directory".

- README + docs/QUICKSTART-PORTAINER: Route 1 = Repository deploy (Portainer
  clones the repo, so build: . resolves), staged so NocoDB comes up first and
  the base id/token are added afterwards; Route 2 = web editor with a
  hand-built image and the build: line removed
- docker-compose.allinone.yml header: same correction
- validated with: docker compose -f docker-compose.allinone.yml config
This commit is contained in:
2026-10-06 16:41:03 +08:00
parent 5d9db48a26
commit 64165ce5aa
3 changed files with 133 additions and 89 deletions
+10 -5
View File
@@ -18,11 +18,16 @@
#
# Portainer
# ---------
# Stacks -> Add stack -> Web editor -> paste this whole file -> fill in the
# environment variables -> Deploy the stack.
# (Recommended: replace the ${...} placeholders with real values in the
# editor. Portainer masks secret-looking values that you type into its
# "Environment variables" panel, which can break a later stack update.)
# Deploy it from the Git repository:
# Stacks -> Add stack -> Repository -> URL <this repo> ->
# Compose path: docker-compose.allinone.yml -> fill in the environment
# variables -> Deploy the stack.
# Portainer's "Web editor"/"Upload" options have no build context, so this
# file's `build: .` fails there (failed to read dockerfile: ... no such file).
# For those, build the image on the host first
# (git clone && docker build -t carousell-monitor:latest .)
# and delete the `build: .` line below.
# See docs/QUICKSTART-PORTAINER.md for the click-by-click version.
#
# Upgrading NocoDB: change the image tag below, then
# docker compose -f docker-compose.allinone.yml up -d