No such file or directory

Hi there,
I have the following docker-compose.yml file

version: '2'

    services:
      apply:
        image: infolie/apply
        volumes:
          - /usr/apply/apply.sqlite3:/usr/apply/db/apply.sqlite3
          - /usr/apply/ssl:/etc/nginx/ssl
    environment:
      INSTANCE_NAME: ''
      VALIDITY_PERIOD: 30
    env_file:
      - /usr/apply/variables.env
    ports:
      - 443:443
      - 8080:8080

But when I try to create a stack using it I get Error (open /usr/apply/variables.env: no such file or directory) even if the file is on the machine

user@TEST:/usr/apply$ ls
application.yml  docs  instanceTheme.css  apply.sqlite3  ssl  ssl_seal.html.erb  variables.env 

Any ideas why this is happening?

Adding a stack with a compose file is essentially running rancher-compose inside the rancher/server container, and the file does not exist in there. If you want to reference files local to your workstation you need to run rancher-compose directly from it.

Thanks for the explanation.
How can I run rancher-compose directly on my VM?

Sigfrid Dusci - IT Manager
InfoRLife SA