I want to dynamically fill an environment variable when I declare a service in my docker-compose file.
I think Ican do that with entrypoint :
entrypoint: LOG_FILE_WS=/home/$(hostname) java -jar my.jar
where $(hostname) is an environment variable already setted on the host.
Ideally, the variable is extracted from the node.
Is it possible?
The idea is to fill a variable at the runtime of a container.