@@ -27,10 +27,13 @@ docker run --name codegate -d -p 8989:8989 -p 9090:9090 -p 8990:8990 --mount typ
2727
2828Parameter reference:
2929
30+ - ` --name codegate ` - give the container a friendly name for easy reference
3031- ` -d ` - start in detached (background) mode
31- - ` -p 8989:8989 ` - bind the CodeGate API to port 8989 on your host
32+ - ` -p 8989:8989 ` - bind the CodeGate API to port 8989 on your host (required)
3233- ` -p 9090:9090 ` - bind the CodeGate web dashboard to port 9090 on your host
34+ (recommended)
3335- ` -p 8990:8990 ` - bind the CodeGate secure HTTP proxy to port 8990 on your host
36+ (required for Copilot)
3437- ` --mount ... ` - mount a persistent Docker volume named ` codegate_volume ` to
3538 the required path in the container
3639- ` --restart unless-stopped ` - restart CodeGate after a Docker or system
@@ -40,33 +43,34 @@ More example run commands to run the container with the right parameters for
4043your scenario are found below. To learn how to customize the CodeGate
4144application settings, see [ Configure CodeGate] ( ./configure.md )
4245
43- ### Alternative run commands {#examples}
46+ ::: warning
4447
45- Run with minimal functionality for use with ** Continue** , ** aider** , or
46- ** Cline** :
48+ If you omit the persistent volume mount, your
49+ [ workspace configurations] ( ../features/workspaces.mdx ) and prompt history are
50+ lost when you stop or restart CodeGate.
4751
48- ``` bash
49- docker run -d -p 8989:8989 -p 9090:9090 --restart unless-stopped ghcr.io/stacklok/codegate:latest
50- ```
52+ :::
53+
54+ ### Alternative run commands {#examples}
5155
52- ** Mount a persistent volume ** to the container (see
53- [ Persisting dashboard data ] ( ./dashboard.md#persisting-dashboard-data ) ):
56+ Run with minimal functionality for use with ** Continue ** , ** aider ** , or
57+ ** Cline ** (omits the HTTP proxy port needed by Copilot ):
5458
5559``` bash
5660docker run --name codegate -d -p 8989:8989 -p 9090:9090 --mount type=volume,src=codegate_volume,dst=/app/codegate_volume --restart unless-stopped ghcr.io/stacklok/codegate:latest
5761```
5862
59- ** Copilot support :** enable the HTTP proxy port and mount a persistent volume
60- (see [ Use CodeGate with GitHub Copilot ] ( ./use-with-copilot.mdx ) ) :
63+ ** Restrict ports :** Docker publishes ports to all interfaces on your host by
64+ default. This example publishes only on your ` localhost ` interface :
6165
6266``` bash
63- docker run --name codegate -d -p 8989:8989 -p 9090:9090 -p 8990:8990 --mount type=volume,src=codegate_volume,dst=/app/codegate_volume --restart unless-stopped ghcr.io/stacklok/codegate:latest
67+ docker run --name codegate -d -p 127.0.0.1: 8989:8989 -p 127.0.0.1: 9090:9090 -p 127.0.0.1: 8990:8990 --mount type=volume,src=codegate_volume,dst=/app/codegate_volume --restart unless-stopped ghcr.io/stacklok/codegate:latest
6468```
6569
6670** Install a specific version:** starting with v0.1.4 you can optionally run a
6771specific version of CodeGate using sematic version tags:
6872
69- - Patch version: ` ghcr.io/stacklok/codegate:v0.1.4 ` (exact)
73+ - Patch version: ` ghcr.io/stacklok/codegate:v0.1.15 ` (exact)
7074- Minor version: ` ghcr.io/stacklok/codegate:v0.1 ` (latest v0.1.x release)
7175- Major version: ` ghcr.io/stacklok/codegate:v0 ` (latest v0.x.x release)
7276
@@ -91,12 +95,20 @@ CodeGate listens on several network ports:
9195| 8989 | 8989 | CodeGate API |
9296| 8990 | 8990 | Secure HTTP proxy (GitHub Copilot integration) |
9397
98+ Docker publishes ports to all network interfaces on your system by default. This
99+ can unintentionally expose your CodeGate installation to other systems on the
100+ same network. To restrict this, add ` 127.0.0.1 ` IP to the publish flags:
101+
102+ - API: ` -p 127.0.0.1:8989:8989 `
103+ - HTTPS proxy: ` -p 127.0.0.1:8990:8990 `
104+ - Dashboard: ` -p 127.0.0.1:9090:9090 `
105+
94106All of the commands in these docs assume the default ports. To use different
95107listening ports, modify the ` -p ` flag(s):
96108
109+ - API: ` -p YOUR_PORT:8989 `
110+ - HTTPS proxy: ` -p YOUR_PORT:8990 `
97111- Dashboard: ` -p YOUR_PORT:9090 `
98- - CodeGate API: ` -p YOUR_PORT:8989 `
99- - Secure HTTP proxy: ` -p YOUR_PORT:8990 `
100112
101113::: note
102114
@@ -149,19 +161,16 @@ persistent volume.
149161
150162## Next steps
151163
152- Now that CodeGate is running, proceed to configure your IDE integration.
153-
154- - [ Use CodeGate with aider] ( ./use-with-aider.mdx )
155- - [ Use CodeGate with Cline] ( ./use-with-cline.mdx )
156- - [ Use CodeGate with Continue] ( ./use-with-continue.mdx )
157- - [ Use CodeGate with GitHub Copilot] ( ./use-with-copilot.mdx )
164+ Now that CodeGate is running, proceed to
165+ [ configure your AI assistant/agent] ( ../integrations/index.mdx ) .
158166
159167## Remove CodeGate
160168
161- If you decide to stop using CodeGate, follow the removal steps for your IDE
162- integration:
169+ If you decide to stop using CodeGate, follow the removal steps for your
170+ [ integration] ( ../integrations/index.mdx ) , then stop and remove the CodeGate
171+ container and volume:
163172
164- - [ Remove CodeGate - aider ] ( ./use-with-aider.mdx#remove-codegate )
165- - [ Remove CodeGate - Cline ] ( ./use-with-cline.mdx#remove- codegate)
166- - [ Remove CodeGate - Continue ] ( ./use-with-continue.mdx#remove-codegate )
167- - [ Remove CodeGate - GitHub Copilot ] ( ./use-with-copilot.mdx#remove-codegate )
173+ ``` bash
174+ docker stop codegate && docker rm codegate
175+ docker volume rm codegate_volume
176+ ```
0 commit comments