Disable access to lucee admin with environment variables wher elucee is in a docker container

I am currently working on configuring a lucee5-nginx docker container.

I have it setup the way I want it but I would like to be able to disable
access to /lucee/admin/server.cfm, /CFIDE, lucee-server, /application.cfc,
etc… using some type of environment variables.

I could copy a different .conf file into the appropriate directory at
startup, but I would prefer to do something a bit more elegant.

does anyone have any thoughts on how to do this?

Thank you for any thoughts