You install on /var/discourse like normal
/var/discourse
and you make sure that Apache2 does not bind to the Discourse IP, and that Discourse Docker/nginx does not bind to the “root” IP where Apache2 is at.