Docker isolates Discourse from everything else that is currently installed on your server, including databases and webservers. However, since the webserver currently running on your server will be listening on the HTTP and HTTPS ports, you will have to configure that server to reverse-proxy requests for your Discourse site to the other webserver running inside the Docker container.