Invalid interpolation format into docker compose file

Still problems :frowning:

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 :frowning:

Sorry, no idea. I downloaded v2.29.0 and works like a charm.

bah… only by seeing what type of test (is it identical to mine?) you did can you make a real comparison

I used your files exactly. My COMPOSER_HOME was empty too. and I got my home folder only once