podman-compose
podman-compose copied to clipboard
Wrongly relative path by include
Describe the bug By the docker compose spec, each included files should be treated as individual project. Meaning that
- Relative path in the docker compose file should be considered as relative to the corresponding project directory.
- 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.
Related document Compose spec docker-compose/include