Rancer cli and environment variables problem

I am trying to create a stack via rancher cli.

My docker-compose.yml has several env vars defined in some services, as e.g.:

 myservice:
    image: someimage
    environment:
       - ENV_VAR1
       - ENV_VAR2

The problem is that if these env vars are exported to the shell running the following command:

rancher stack create --start -f docker-compose.yml -r rancher-compose.yml my-stack-name

they are not consumed, i.e. the docker-compose.yml generated once the service has been started has none of the above vars.

This was not the case with rancher-compose utility.

Any help how to handle this with rancher cli?