Changing the Base Domain
If you started on one base domain and want to move everything to another (say from
coding9.test to my-company.test), change it in one command.
mdocker config set BASE_DOMAIN my-company.testSetting BASE_DOMAIN (or BASE_DOMAINS) is special: config set detects it and
cascades the change automatically —
- regenerates the wildcard certificate for the new domain;
- rewrites the macOS DNS resolver at
/etc/resolver/<new-domain>; - re-renders every project’s override with the new hostnames;
- refreshes the edge stack.
After the switch
Section titled “After the switch”Doing it by hand
Section titled “Doing it by hand”If you ever edit config.env directly instead of using config set, the cascade does
not run — you would need to re-run setup and re-render each project yourself:
mdocker setupfor n in $(mdocker --json ls | jq -r '.[].name'); do mdocker rerender "$n"donePrefer mdocker config set BASE_DOMAIN … — it does all of this for you.
Related
Section titled “Related”- Multiple Base Domains
- CLI:
config - Concept: DNS & TLS
Cookie settings
We only use statistics tools if you allow it. Necessary storage keeps this site working; everything else is off until you decide.
Stores your choice from this dialog in your browser (localStorage). No cookie, no transfer to third parties.
Google Analytics 4 via Google Tag Manager, to measure how the site is used. Loaded only after you allow it.