[某些服务,例如elasticsearch和其他...必须用点设置环境变量,例如:discovery.type =单节点
我想将其归档,这不是问题...
something:
build: './imagelocation/'
env_file:
- .env
。env文件包含例如:
EL_ENVIRONMENT=development
discovery.type=single-node
并且“ discovery.type =单节点”不起作用,我知道为什么不起作用。
如何解决此问题而没有解决方法? (并且没有安全性问题,不想在docker run -e end等中使用)
env_file:
中的docker-compose.yml
属性。我的服务配置如下: