Skip to content

Commit 5855abd

Browse files
committed
add examples commands different Docker cases
1 parent 68f0e86 commit 5855abd

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

docs/admin/workspace-proxies.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,40 @@ coder wsproxy server
9292

9393
### Running from the Docker image
9494

95-
Modify the entrypoint to
95+
Modify the default entrypoint to run the workspace proxy.
96+
97+
#### Docker Compose
98+
99+
change the provided [`docker-compose.yml`](https://github.com/coder/coder/blob/main/docker-compose.yaml) file to include the workspace proxy.
100+
101+
```diff
102+
image: ghcr.io/coder/coder:${CODER_VERSION:-latest}
103+
+ entrypoint: /opt/coder wsproxy server
104+
```
105+
106+
#### Docker run
96107

97108
```bash
98-
entrypoint = ["/opt/coder", "wsproxy", "server"]
109+
docker run --rm -it --entrypoint /opt/coder ghcr.io/coder/coder:latest wsproxy server
110+
```
111+
112+
#### Custom Dockerfile
113+
114+
```Dockerfile
115+
FROM ghcr.io/coder/coder:latest
116+
ENTRYPOINT ["/opt/coder", "wsproxy", "server"]
99117
```
100118

101119
### Selecting a proxy
102120

103121
Users can navigate to their account settings to select a workspace proxy. Workspace proxy preferences are cached by the web browser. If a proxy goes offline, the session will fall back to the primary proxy. This could take up to 60 seconds.
104122

105123
![Workspace proxy picker](../images/admin/workspace-proxy-picker.png)
124+
125+
```
126+
127+
```
128+
129+
```
130+
131+
```

0 commit comments

Comments
 (0)