JetBrains / JetBrains/phpstorm-workshop

docker-compose relative file path. Error: Can't read compose file project/./v2/../../v2/docker-compose.yml

Open
#58 1 comment 0 reactions 1 assignee Claimed by @emrzv View on GitHub
Dominant language
PHP
Stars
294
Forks
69
PR merge metrics
No merged PRs in 30d

Description

I have docker-compose.yml file in the root of my project and I can run it directly from terminal with `docker-compose up`
But when I try to add a docker debug configuration from docker-compose file, I **cannot set proper absolute path**.
When I add path do docker-compose.yml, everything is fine.

![image](https://user-images.githubusercontent.com/26650334/76699753-9a335c80-66c1-11ea-900c-e9dc36ca8378.png)

But when I press OK, the IDE **replace it with a relative path** based on my project dir, like this:

![image](https://user-images.githubusercontent.com/26650334/76699802-f4342200-66c1-11ea-9156-fac8abc9e6a2.png)

And obviously this configuration cannot run with the following error:

```
Deploying 'Compose: v2'...
Failed to deploy 'Compose: v2': Can't read compose file at /path/to/my/project/./v2/../../v2/docker-compose.yml
```
How can I set the absolute path, or make this relative path works in IDE?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.