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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user