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
You can use the flag when using docker-compose build
docker-compose build --build-arg PRODUCTION=VALUE
In Dockerfile you can get the argument PRODUCTION
# Dockerfile ARG PRODUCTION FROM node:latest