Environment variable substitution doesn't work in docker-compose file

后端 未结 0 1463
隐瞒了意图╮
隐瞒了意图╮ 2020-12-10 11:21

Imagine we have .env file like this:

VAR_A=300
VAR_B=$(($VAR_A/100))

VAR_MEM=$((50*$VAR_B))M

And my docker-compose file uses it like this:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题