I'm working on this as well as I prefer using cpanel to manage certain domains.
Best idea I have is creating an nginx docker container and mounting like -v /etc/nginx:/etc/nginx
This way all the generated config files made by cpanel/easyapache4 are picked up by the container and basically cloning the bare metal nginx.
I'm using an apache config with nginx so for example nginx:80 will get the request and send it to httpd:81
If you're not using nginx, then you could make an apache2 container and have it mount /etc/httpd or wherever your apache configs are.
If there are better ideas I'd like to hear as well.