I am having a slight issue with the Composer CLI remote interpreter within one of my projects.
As a bit of additional information, I am running my application inside a Docker network where each container is given an alias hostname (i.e. redis, mysql etc..):
# Web Server
# MySQL Database
# Redis Database
command: [ "redis-server", "--appendonly", "yes" ]
When running commands directly from the terminal, I am able to run scripts such as docker-compose exec app composer run post-autoload-dump and everything will work perfectly.
However when I use the built in run configuration screen, it just won't work at all. I get the following issue suggesting it can't resolve the alias hostname redis.
In my mind both are using the composer instance remotely installed within the docker container, so I don't see any reason why there would be any difference. I am wondering if I have done anything incorrectly when setting up composer / docker in the settings:
In particular I am wondering if my network mode / extra host settings need to be configured differently. Any help anyone could offer would be really appreciated!