Lucee Docker docBase

Hey all, I am new and have been fairly successful with the lucee docker installations so far… I apologize for the ignorance here but:

I am using the Lucee 6 Docker image to build our instances…

The default docbase/context when it installs is /var/www

Is there any way to provide a custom path to our desired default docbase/context that the installation process uses to configure the server.

If this is not possible, is there a way to change the default docbase/context afterwards?

Anyone have any ideas on this? IS there a ENV variable I can set to change the default (/var/www) path ?

You need to set the custom file path in the docker-compose.yaml file to map the default docbase, and also set the LUCEE_WEB_ROOT in the Docker environment. Then, run the docker-compose up command. Now, the default root path is configured in the .CFConfig.json file. If the changes are not applied, check the .CFConfig.json file and manually modify it by adding "webroot": "/your/path" if it’s not already present

In docker-compose.yaml

environment:
    - LUCEE_WEB_ROOT=/your/path
volumes:
    - path/to/your/custom/webroot:/your/path