Skip to content

code-server

Logo

Description

Code-server (https://coder.com) is VS Code running on a remote server, accessible through the browser. - Code on your Chromebook, tablet, and laptop with a consistent dev environment. - If you have a Windows or Mac workstation, more easily develop for Linux. - Take advantage of large cloud servers to speed up tests, compilations, downloads, and more. - Preserve battery life when you're on the go. - All intensive computation runs on your server. - You're no longer running excess instances of Chrome.

Image

linuxserver/code-server:latest

Categories

  • Development

Ports

  • 8443:8443/tcp

Volumes

ContainerBind
/config/opt/appdata/code-server

Environment Variables

NameLabelDefaultDescription
PUIDPUID1000for UserID
PGIDPGID1000for GroupID
TZTZEurope/Amsterdamspecify a timezone to use
PASSWORDPASSWORDpasswordOptional web gui password, if `PASSWORD` or `HASHED_PASSWORD` is not provided, there will be no auth.
HASHED_PASSWORDHASHED_PASSWORD``````Optional web gui password, overrides `PASSWORD`, instructions on how to create it is below.
SUDO_PASSWORDSUDO_PASSWORDpasswordIf this optional variable is set, user will have sudo access in the code-server terminal with the specified password.
SUDO_PASSWORD_HASHSUDO_PASSWORD_HASH``````Optionally set sudo password via hash (takes priority over `SUDO_PASSWORD` var). Format is `$type$salt$hashed`.
PROXY_DOMAINPROXY_DOMAINcode-server.my.domainIf this optional variable is set, this domain will be proxied for subdomain proxying.
DEFAULT_WORKSPACEDEFAULT_WORKSPACE/config/workspaceIf this optional variable is set, code-server will open this directory by default

Labels

KeyValue
traefik.enabletrue
traefik.http.routers.code-server.ruleHost(`code-server.{$TRAEFIK_INGRESS_DOMAIN}`)
traefik.http.routers.code-server.entrypointshttps
traefik.http.services.code-server.loadbalancer.server.port8443
traefik.http.routers.code-server.tlstrue
traefik.http.routers.code-server.tls.certresolverdefault
traefik.http.routers.code-server.middlewarestraefik-forward-auth
mafl.enabletrue
mafl.titleCode-server {shmolf}
mafl.descriptionCode-server (https://coder.
mafl.linkhttps://code-server.{$TRAEFIK_INGRESS_DOMAIN}
mafl.icon.wraptrue
mafl.icon.color#007acc
mafl.status.enabledtrue
mafl.status.interval60
mafl.groupDevelopment
mafl.icon.urlhttps://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/code-server-banner.png

Licensed under the MIT License. Free for all use cases. For enterprise or academic support, please reach out to us.