If you’re installing both on the same server, this is probably what you’re looking for:
If, on the other hand, you’re dealing with two separate websites (e.g. two different Digital Ocean droplets, or two different servers) this is simply a question of configuring your DNS correctly.
Whether they’re both on the same server or different ones, the integration options between Discourse and WordPress are the same.