Skip to content

fix: allow Docker Compose commands from subdirectories - #128

Open
vitormattos wants to merge 2 commits into
mainfrom
fix/compose-from-subdirectories
Open

fix: allow Docker Compose commands from subdirectories#128
vitormattos wants to merge 2 commits into
mainfrom
fix/compose-from-subdirectories

Conversation

@vitormattos

@vitormattos vitormattos commented Sep 12, 2026

Copy link
Copy Markdown
Member

Description

Docker Compose can find docker-compose.yml by searching parent directories, but the proxy-coordinator was using ${PWD} as the project directory.

Because ${PWD} is the directory where the command is executed, running docker compose from a subdirectory made the coordinator use the wrong project path.

This PR:

  • mounts the project at a fixed /project path inside the coordinator;
  • uses /project as PROJECT_DIR and the coordinator working directory;
  • copies proxy assets through stdin instead of passing the coordinator path as a host bind mount to the Docker daemon;
  • adds a CI check that compares docker compose config from the repository root and from .docker.

This keeps the Compose configuration independent from the directory where the developer runs the command.

@vitormattos
vitormattos force-pushed the fix/compose-from-subdirectories branch 2 times, most recently from d425088 to 6f41b93 Compare September 12, 2026 07:52
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@vitormattos
vitormattos force-pushed the fix/compose-from-subdirectories branch 2 times, most recently from 9148a6c to 1e2213f Compare September 12, 2026 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant