这些变量在 Docker Compose 文件中是什么?

huangapple go评论59阅读模式
英文:

What are these variables inside a docker compose file?

问题

Sure, here are the translations of the variables in your provided text:

  • ${LOCALSTACK_DOCKER_NAME-localstack_main}: ${LOCALSTACK_DOCKER_NAME-localstack_main}
  • ${DEBUG-}: ${DEBUG-}
  • ${LOCALSTACK_VOLUME_DIR:-./volume}: ${LOCALSTACK_VOLUME_DIR:-./volume}

I hope this helps!

英文:

Given this docker compose file taken straight out of the localstack documentation, what are these variables?

这些变量在 Docker Compose 文件中是什么?

  • ${LOCALSTACK_DOCKER_NAME-localstack_main}
  • ${DEBUG-}
  • ${LOCALSTACK_VOLUME_DIR:-./volume}

Like .. are these setup outside of this file, somewhere?

I'm not interested in what they represent .. just where the values are set and get replaced/substituted into/from.

cheers!

答案1

得分: 0

这些是环境变量

您可以以许多不同的方式设置它们,这取决于操作系统。

英文:

These are environment variables.

You can set them in many different ways and it depends on the operating system.

huangapple
  • 本文由 发表于 2023年5月22日 16:29:45
  • 转载请务必保留本文链接:https://go.coder-hub.com/76304321.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定