Still problems
My scenario
$ cat 2.yml
services:
service2:
extends:
file: $HOME/1.yml
service: service1
$ cat $HOME/1.yml
services:
service1:
image: bash
volumes:
- type: bind
source: ${COMPOSER_HOME:-$HOME/.config/composer}
target: /tmp
Testing…
$ docker compose -f 2.yml config
name: tmpfhssppbagj
services:
service2:
image: bash
networks:
default: null
volumes:
- type: bind
source: /home/xxx/home/xxx/.config/composer
target: /tmp
networks:
default:
name: tmpfhssppbagj_default
To notice
source: /home/xxx/home/xxx/.config/composer
mmmhhh…
$ ls /home/xxx/home/xxx/.config/composer
/home/xxx/home/xxx/.config/composer: Not found
Logical!!!
/home/xxx is repeated twice.
But why?
It’s just a puzzle