How to add multiple `JAVA_OPTS` values in docker env

Hi All,
I want to add multiple values in docker env JAVA_OPTS.
Is below way correct ?

-e "JAVA_OPTS=-Xmx4g -Dlog4j.configurationFile=file:///tmp/log_config.xml" 

First value is -Xmx4g for jvm ram limit
Second is -Dlog4j.configurationFile=file:///tmp/log_config.xml for custom log config.

Thanks in advance!

you need to pass -e on each variable
-e JAVA_OPTS=... -e -Dlog....