# Resource/Advice on how to change domains?

**URL:** <https://meta.discourse.org/t/resource-advice-on-how-to-change-domains/280183>\
**Category:** Self-hosting\
**Created:** [September 26, 2023, 3:04pm UTC](https://meta.discourse.org/t/resource-advice-on-how-to-change-domains/280183 "2023-09-26T15:04:01Z")\
**Posts on this page:** 4\
**Page:** 1

## AI-generated summary

[OsaIsacson](/t/-/280183/1) is seeking advice on how to change the domain for a self-hosted Discourse instance, currently hosted on Digital Ocean with Mailgun and GoDaddy. The client wishes to switch to a domain hosted by One.com. [Moin](/t/-/280183/2) provides a link to a Meta Discourse topic detailing how to change the domain name or rename the instance. [eki](/t/-/280183/3) clarifies that the process depends on whether the user is moving the domain or just the hosting. If changing the domain name, one must adjust the host and run rename commands, potentially requiring a rebuild if using Docker. [OsaIsacson](/t/-/280183/4) thanks the group, noting they do not use a separate Docker setup but observe updates during Discourse version upgrades.

<div class="post-metadata">

**Author:** ![OsaIsacson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osaisacson/32/263464_2.png) [@OsaIsacson](https://meta.discourse.org/u/OsaIsacson)\
**Post date:** [September 26, 2023, 3:04pm UTC](https://meta.discourse.org/t/resource-advice-on-how-to-change-domains/280183/1 "2023-09-26T15:04:01Z")

</div>

I am self-hosting an instance, using:

- Digital Ocean
- Mailgun
- GoDaddy

My client now wishes to change domain to one hosted by [One.com](http://One.com).

I set up the original install but cannot find a good resource for how to switch domains.  
Is there such a resource out there, or could you give me some pointers?

---

<div class="post-metadata">

**Author:** ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)\
**Post date:** [September 26, 2023, 3:07pm UTC](https://meta.discourse.org/t/resource-advice-on-how-to-change-domains/280183/2 "2023-09-26T15:07:02Z")

</div>

> [@Change the domain name or rename your Discourse](https://meta.discourse.org/t/change-the-domain-name-or-rename-your-discourse/16098):
>
> bookmark This guide explains how-to change the domain name of your Discourse site, and includes information about setting up DNS changes, editing configuration files, updating site settings, and correcting social logins and post content to reflect your new domain name. warning This guide is for self-hosted Discourse instances that were installed using our [installation guide on GitHub](https://github.com/discourse/discourse/blob/main/docs/INSTALL-cloud.md). If you are [hosted by Discourse](https://www.discourse.org/pricing), please see [Configure your domain name for hosted Discourse](https://meta.discourse.org/t/configure-your-domain-name-for-hosted-discourse/21827) for specific …

---

<div class="post-metadata">

**Author:** ![ecki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ecki/32/264025_2.png) [@ecki](https://meta.discourse.org/u/ecki)\
**Post date:** [September 26, 2023, 4:56pm UTC](https://meta.discourse.org/t/resource-advice-on-how-to-change-domains/280183/3 "2023-09-26T16:56:59Z")

</div>

I guess there are two things here, if you move the domain name with you, then you only need to transport your installation from one to the other. If you also plan to publish the service under different domain name, you need to adjust that and run the commands to rename the host. (rebuild if docker is used and remap soo @Moin link).

Are self hosting with docker?

---

<div class="post-metadata">

**Author:** ![OsaIsacson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osaisacson/32/263464_2.png) [@OsaIsacson](https://meta.discourse.org/u/OsaIsacson)\
**Post date:** [September 27, 2023, 7:47am UTC](https://meta.discourse.org/t/resource-advice-on-how-to-change-domains/280183/4 "2023-09-27T07:47:20Z")

</div>

Many thanks! I’ll check this out and return.  
I don’t have anything separate set up with docker, but see it updating when I update the discourse version, if that makes sense.
