In my docker compose file there is a dynamic field which I\'d like to generate during the running. Actually it is a string template:
environment: - SERVE
See this answer. You can do it like this: PORT=433 docker-compose
PORT=433 docker-compose
You can even provide multiple values: PORT=433 MYIP='192.168.123.456' docker-compose
PORT=433 MYIP='192.168.123.456' docker-compose