Custom Domain and subdomain support in codespaces #45620
Replies: 3 comments
-
@MR-4O4 did you figure a way around this? Same situation here, I want the codespace to expose loopback domains other than localhost |
Beta Was this translation helpful? Give feedback.
-
Inside of the bash script just use the below command in the environment to update the /etc/hosts file for subdomain support. |
Beta Was this translation helpful? Give feedback.
-
I checked the creation log and it seems that the labels key is overwritten in compose.yml which is actually referenced in codespaces. This can be seen in the files /workspaces/.codespaces/.persistedshare in the codespaces. Since traefik references the labels key for routing, it appears that user-defined routing does not work. However, I have not found any documentation on this specification. |
Beta Was this translation helpful? Give feedback.
-
Hi,
My dev environment requires me to use docker-in-docker with codespaces to run applications like traefik, authelia, nginx etc inside docker containers.
Now for routing with traefik and securing the app with authelia requires me to specify subdomains for various containerised applications and there's seems to be no way to create subdomains or even use custom domains in codespaces.
Kindly let me know if there's any other way for me to setup dev environment with codespaces.
Beta Was this translation helpful? Give feedback.
All reactions