# Env\_file directive ignored

**URL:** https://forums.suse.com/t/env-file-directive-ignored/10589
**Category:** Rancher 1.x
**Created:** [May 28, 2018, 2:30pm UTC](https://forums.suse.com/t/env-file-directive-ignored/10589 "2018-05-28T14:30:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sigfrid](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/sigfrid/32/2205_2.png) [@sigfrid](https://forums.suse.com/u/sigfrid)
#### Post date: [May 28, 2018, 2:30pm UTC](https://forums.suse.com/t/env-file-directive-ignored/10589/1 "2018-05-28T14:30:16Z")

</div>

Hi there,  
Following up my original issue ([No such file or directory](http://forums.suse.com/t/no-such-file-or-directory/7312)), I have made some changes to my compose files.

My `docker-compose.yml` looks like  
version: ‘2’

```
services:
  qlever-gateway:
    image: inforlife/qlever-gateway:2018.1
    volumes:
      - /samba/qlever-data:/qlever-data
    env_file: /usr/app-env-files/qlever-gateway.env
    environment:
      ARCHIVE_DIR: /qlever-archive

```

And my `rancher-compose.yml` looks like  
version: ‘2’

```
services:
  qlever-gateway:
    scale: 1
    labels:
      io.rancher.scheduler.affinity:host_label: app=qlever-gateway

```

However, when I add a new stack using the 2 files above, the following configuration is used.

 ![xxxx](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/8/8f3f9e1979249cbc95da7510332565d28f3ad918.png)

As you can see the `env_file: /usr/app-env-files/qlever-gateway.env` is ignored.  
The `/usr/app-env-files/qlever-gateway.env` has been added to the machine where the rancher server is running.

Why is this happening? Am I missing something here?

I’m running server v1.6.17.

Thank you

---

<div class="post-metadata">

### Author: ![sigfrid](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/sigfrid/32/2205_2.png) [@sigfrid](https://forums.suse.com/u/sigfrid)
#### Post date: [June 6, 2018, 1:31pm UTC](https://forums.suse.com/t/env-file-directive-ignored/10589/2 "2018-06-06T13:31:03Z")

</div>

The issue has been solved updating the env\_file itself from

```auto
key: value

```

to

```auto
key=value

```

Hope this may help others.
