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: