添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
无邪的便当  ·  容器与云|LXD 2.0 ...·  5 月前    · 
讲道义的凉面  ·  SMPP ...·  6 月前    · 

According to the instructions Ways to set environment variables with Compose | Docker Docs I set up a custom variable file at my place

env_file: - web-variables.env

In my case, this file is not detected. It should be assumed that I do not want to use:

It works in the same way as docker run --env-file=FILE ... . Why can’t it see my web-variables.env file?

@bluenobly is right. If you need even more details, I found three topics where I explained the different ways to pass variables (compose --env-file , .env file, env_file in compose files)

  • Specifying buildtime envars for docker-compose with multitiple files - #3 by rimelek
  • Combining docker-compose override files with mutliple .env files - #2 by rimelek
  • Passing command line arguments in Docker Compose - #2 by rimelek
    This one is just a use case for multiple .env files.
  •