How to use variables for image names in docker-compose.yml

If ever someone has the same problem as me, the solution is to use envsubst. Here is an example:

    $ envsubst < docker-compose.yml.template > docker-compose.yml
    $ balena deploy my_slug/my_fleet --registry-secrets ./registry-secrets.yml
1 Like