How to set teamcity variable in Dockercompose
What i did until now
-> Parameters
-- Add new parameter ( env.build:Name) with the parameter below
| %env.TEAMCITY_BUILDCONF_NAME% |
in my docker-compose i wrote

When i execute the build i've this

i search on internet but until now i didn't find anything useful :(
Could you explain how to set TEAMCITY variable in dockerfile as %env.build_Name% for example .
thank you in advance
Please sign in to leave a comment.
Hello,
I'm sorry for the delay with the answer.
You can write in your docker compose file:
container_name: "container_${TEAMCITY_NAME}"
and set environment variable in TeamCity build parameters env.TEAMCITY_NAME=name_you_want or env.TEAMCITY_NAME=%env.TEAMCITY_BUILDCONF_NAME%
Hope this helps,