Docker Community Forums

Share and learn in the Docker community.

How to go about handling env_file

(Kanat Bekt) #1

Currently my docker-compose.yml has several containers that use env_file pointing to the same file. The environment file has 10+ key-values.

Since docker-cloud does not support env_file, what is the proper way to go about creating a stack file in our case?

Surely copy-pasting the same 10+key-values in multiple containers as env variable is not a good approach.

(Geoff Bowers) #2

It’s the only approach I currently know of. We’ve been toying with the idea of a local script that merges and composites a stack file, then pushes to DockerCloud for the CLI.

The other major issue for us is referencing keys and other private information in clear text. We’ve not found a suitable “vault” mechanism for managing data in stack files.

For now we are endure copy and paste mayhem.