Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'environment' with 'env-file' specified together for service in docker-compose.yml don't work #1013

Closed
pasikon opened this issue May 22, 2018 · 1 comment
Assignees

Comments

@pasikon
Copy link

pasikon commented May 22, 2018

In such case key-value pairs in 'environment' sections are omitted.

For example

services:
  namenode:
    image: bde2020/hadoop-namenode:2.0.0-hadoop2.7.4-java8
    volumes:
      - namenode:/hadoop/dfs/name
    environment:
      - CLUSTER_NAME=test
    env_file:
      - ./hadoop-hive-namenode.env
    ports:
      - "50070:50070"
      - "8020:8020"

CLUSTER_NAME won't be set

@hangyan hangyan self-assigned this May 24, 2018
@hangyan
Copy link
Contributor

hangyan commented May 26, 2018

This seems like a bug, I will trying to fix it ASAP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants