Load env vars with docker-compose env_file, secrets

I see, that docker-compose run olivetree env call should help, thanks. I think the next thing could try is var substitution in the environment: section. So something like:

docker-compose.yml:

    environment:
      DATABASE_URL: ecto://olivetree:olivetree@postgres/olivetree
      HOSTNAME: localhost
      PORT: 4000
      GUARDIAN_SECRET_KEY: ${GUARDIAN_SECRET_KEY}
      ...

(source env vars at command line) OR $ export GUARDIAN_SECRET_KEY=efaw77aw6wfea6f
docker-compose up