Skip to content

Commit 7f87bd9

Browse files
Bot Updating Templated Files
1 parent eca1704 commit 7f87bd9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ services:
110110
- SUDO_PASSWORD=password #optional
111111
- SUDO_PASSWORD_HASH= #optional
112112
- PROXY_DOMAIN=code-server.my.domain #optional
113+
- DEFAULT_WORKSPACE=/config/workspace #optional
113114
volumes:
114115
- /path/to/appdata/config:/config
115116
ports:
@@ -130,6 +131,7 @@ docker run -d \
130131
-e SUDO_PASSWORD=password `#optional` \
131132
-e SUDO_PASSWORD_HASH= `#optional` \
132133
-e PROXY_DOMAIN=code-server.my.domain `#optional` \
134+
-e DEFAULT_WORKSPACE=/config/workspace `#optional` \
133135
-p 8443:8443 \
134136
-v /path/to/appdata/config:/config \
135137
--restart unless-stopped \
@@ -151,6 +153,7 @@ Container images are configured using parameters passed at runtime (such as thos
151153
| `-e SUDO_PASSWORD=password` | If this optional variable is set, user will have sudo access in the code-server terminal with the specified password. |
152154
| `-e SUDO_PASSWORD_HASH=` | Optionally set sudo password via hash (takes priority over `SUDO_PASSWORD` var). Format is `$type$salt$hashed`. |
153155
| `-e PROXY_DOMAIN=code-server.my.domain` | If this optional variable is set, this domain will be proxied for subdomain proxying. See [Documentation](https://github.com/cdr/code-server/blob/master/docs/FAQ.md#sub-domains) |
156+
| `-e DEFAULT_WORKSPACE=/config/workspace` | If this optional variable is set, code-server will open this directory by default |
154157
| `-v /config` | Contains all relevant configuration files. |
155158

156159
## Environment variables from files (Docker secrets)
@@ -262,6 +265,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
262265

263266
## Versions
264267

268+
* **06.12.21:** - Add `DEFAULT_WORKSPACE` env var.
265269
* **29.11.21:** - Rebase to Ubuntu focal.
266270
* **16.09.21:** - Fix slow `chown` on large workspace (contents of workspace folder no longer chowned).
267271
* **11.07.21:** - Bump node to 14 to fix builds

0 commit comments

Comments
 (0)