Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrongly relative path by include #947

Open
HernandoR opened this issue May 25, 2024 · 1 comment
Open

Wrongly relative path by include #947

HernandoR opened this issue May 25, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@HernandoR
Copy link
Contributor

HernandoR commented May 25, 2024

Describe the bug
By the docker compose spec, each included files should be treated as individual project. Meaning that

  1. Relative path in the docker compose file should be considered as relative to the corresponding project directory.
  2. Each included file may have a corresponding .env file, which should be override by the parent file.
    To Reproduce

suggesting a structure as

./include/
├── docker-compose.yaml
├── extend
│   └── docker-compose.extend.yaml
└── extend2
    └── docker-compose.extend2.yaml

where as each extended docker-compose try to map ./config, Calling docker compose at include

Expected behavior

service in extend map extend/config; extend2 map extend2/config

Actual behavior

all service mapping include/config

Output

$ podman-compose version
podman-compose version 1.0.7
podman version 4.3.1
podman --version 
podman version 4.3.1

Additional context

It is not a run time problem, but an designing inconsistance.

@HernandoR HernandoR added the bug Something isn't working label May 25, 2024
@HernandoR
Copy link
Contributor Author

Related document Compose spec docker-compose/include

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant