Skip to content

Commit bce1672

Browse files
committed
fix: pin --project-directory in bin/stack.sh for correct satellite mount paths
docker-compose.observability.yml's (and every other satellite file's) bind mounts are written relative to the repository root, matching docker-compose.dev.yml's own convention -- but Compose otherwise derives the project directory from whichever -f file is listed first, which happens to already be docker-compose.dev.yml here. Pin --project-directory . explicitly instead of relying on that ordering, so it keeps resolving correctly regardless of what -f flags get added or reordered later.
1 parent eae3b72 commit bce1672

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

bin/stack.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,14 @@ cd "$REPO_ROOT"
3636
# satellite files use paths relative to the repository root instead, which
3737
# works fine alongside `include:` since they're passed as plain `-f` files.
3838
# See docker-compose.dev.yml's header comment for the full reasoning.
39+
#
40+
# `--project-directory .` pins that repository-root resolution explicitly,
41+
# rather than relying on `docker-compose.dev.yml` happening to be the first
42+
# `-f` file (Compose otherwise derives the project directory from whichever
43+
# file is listed first).
3944
COMPOSE=(
4045
docker compose
46+
--project-directory .
4147
-f docker-compose.dev.yml
4248
-f docker/docker-compose.open-zaak.yml
4349
-f docker/docker-compose.objects-apis.yml

0 commit comments

Comments
 (0)