# How To Use Environment Variable Passed From Docker in keycloak custom theme

**URL:** <https://forum.keycloak.org/t/how-to-use-environment-variable-passed-from-docker-in-keycloak-custom-theme/9721>\
**Category:** Getting advice\
**Created:** [June 23, 2021, 9:12am UTC](https://forum.keycloak.org/t/how-to-use-environment-variable-passed-from-docker-in-keycloak-custom-theme/9721 "2021-06-23T09:12:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Asperitas](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@Asperitas](https://forum.keycloak.org/u/Asperitas)\
**Post date:** [June 23, 2021, 9:12am UTC](https://forum.keycloak.org/t/how-to-use-environment-variable-passed-from-docker-in-keycloak-custom-theme/9721/1 "2021-06-23T09:12:06Z")

</div>

Hi,

I am Using Docker For Keycloak Server and using postgres db in docker.compose.yml file.  
i am passing environment variables through docker file.  
so i want to access that environment variables in custom theme file in login.ftl file  
I’ve also go through following link:  
[https://www.keycloak.org/docs/latest/server\_development/](https://www.keycloak.org/docs/latest/server_development/)

- `${env.ENV_VAR}` - for environment variables.  
but i didn’t get that variable.  
if you have any idea or have any documents please share with me.

Thanking You.

---

<div class="post-metadata">

**Author:** ![moisesrodriguez](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/moisesrodriguez/32/10735_2.png) [@moisesrodriguez](https://forum.keycloak.org/u/moisesrodriguez)\
**Post date:** [August 21, 2024, 4:09pm UTC](https://forum.keycloak.org/t/how-to-use-environment-variable-passed-from-docker-in-keycloak-custom-theme/9721/2 "2024-08-21T16:09:34Z")

</div>

@Asperitas did you ever figure this out? I’m on the same boat right now, trying to figure out how to use env variables in the custom theme.
