diff --git a/images/docker-code-server/index.html b/images/docker-code-server/index.html index 79aa4738a4..afefcf6f9e 100644 --- a/images/docker-code-server/index.html +++ b/images/docker-code-server/index.html @@ -16,7 +16,7 @@ - PROXY_DOMAIN=code-server.my.domain #optional - DEFAULT_WORKSPACE=/config/workspace #optional volumes: - - /path/to/appdata/config:/config + - /path/to/code-server/config:/config ports: - 8443:8443 restart: unless-stopped @@ -32,7 +32,7 @@ -e PROXY_DOMAIN=code-server.my.domain `#optional` \ -e DEFAULT_WORKSPACE=/config/workspace `#optional` \ -p 8443:8443 \ - -v /path/to/appdata/config:/config \ + -v /path/to/code-server/config:/config \ --restart unless-stopped \ lscr.io/linuxserver/code-server:latest
Containers are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate <external>:<internal>
respectively. For example, -p 8080:80
would expose port 80
from inside the container to be accessible from the host's IP on port 8080
outside the container.
-p
)¶Parameter | Function |
---|---|
8443 | web gui |
-e
)¶Env | Function |
---|---|
PUID=1000 | for UserID - see below for explanation |
PGID=1000 | for GroupID - see below for explanation |
TZ=Etc/UTC | specify a timezone to use, see this list. |
PASSWORD=password | Optional web gui password, if PASSWORD or HASHED_PASSWORD is not provided, there will be no auth. |
HASHED_PASSWORD= | Optional web gui password, overrides PASSWORD , instructions on how to create it is below. |
SUDO_PASSWORD=password | If this optional variable is set, user will have sudo access in the code-server terminal with the specified password. |
SUDO_PASSWORD_HASH= | Optionally set sudo password via hash (takes priority over SUDO_PASSWORD var). Format is $type$salt$hashed . |
PROXY_DOMAIN=code-server.my.domain | If this optional variable is set, this domain will be proxied for subdomain proxying. See Documentation |
DEFAULT_WORKSPACE=/config/workspace | If this optional variable is set, code-server will open this directory by default |
-v
)¶Volume | Function |
---|---|
/config | Contains all relevant configuration files. |
Parameter | Function |
---|---|
You can set any environment variable from a file by using a special prepend FILE__
.
As an example:
-e FILE__MYVAR=/run/secrets/mysecretvariable
@@ -58,4 +58,4 @@
--pull \
-t lscr.io/linuxserver/code-server:latest .
The ARM variants can be built on x86_64 hardware using multiarch/qemu-user-static
Once registered you can define the dockerfile to use with -f Dockerfile.aarch64
.
/config/workspace
contents.install-extension
as a helper for mods to install extensions.DEFAULT_WORKSPACE
env var.chown
on large workspace (contents of workspace folder no longer chowned).HASHED_PASSWORD
.SUDO_PASSWORD_HASH
.