Not Able To Access Environment Variable In Custom Theme


I am Passing Environment Variable Through docker yml file ss given below

And Using in custom theme info.ftl like this ${env.CUSTOM_BACK_TO_LOGIN_URL}

By Referring this link Server Developer Guide
but i am getting error

Is this right way to use environment variables ? Or If You Have Any documents please share
Thanking You