With the rise of containers, Kuberenetes, 12 Factor etc, it has become easier to replicate an identical environment across dev, staging and production. However, what there appears to be no common standard to domain name conventions.
As far as I can see it, there are two ways of doing it:
- Use subdomains:
*.dev.foobar.tld
*.staging.foobar.tld
*.foobar.tld
- Use separate domains:
*.foobar-dev.tld
*.foobar-staging.tld
*.foobar.tld
I can see up and downs with both approaches, but I'm curious what the common practise is.
As a side-note, Cloudflare will not issue you certificates for sub-sub domains (e.g. *.stage.foobar.tld
).