Variables in Dockerfile not expanded when run through Ansible’s community.docker.docker_compose
I finally found out, that I need to run the CMD in shell mode, since I have variables in the command line (as stated here : How can I use a variable inside a Dockerfile CMD?)