mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
Add support for coder tunnel in docker-compose (#4027)
This commit is contained in:
+14
-5
@@ -54,16 +54,25 @@ an PostgreSQL container and volume.
|
||||
|
||||
3. Start Coder with `docker-compose up`:
|
||||
|
||||
In order to use cloud-based templates (e.g. Kubernetes, AWS), you must set `CODER_ACCESS_URL` to the external URL that users and workspaces will use to connect to Coder.
|
||||
In order to use cloud-based templates (e.g. Kubernetes, AWS), you must have an external URL that users and workspaces will use to connect to Coder.
|
||||
|
||||
For proof-of-concept deployments, you can use [Coder's tunnel](../admin/configure.md#tunnel):
|
||||
|
||||
```console
|
||||
```sh
|
||||
cd coder
|
||||
|
||||
CODER_ACCESS_URL=https://coder.example.com
|
||||
docker-compose up
|
||||
CODER_TUNNEL=true docker-compose up
|
||||
```
|
||||
|
||||
> Without `CODER_ACCESS_URL` set, Coder will bind to `localhost:7080`. This will only work for Docker-based templates.
|
||||
For production deployments, we recommend setting an [access URL](../admin/configure.md#access-url):
|
||||
|
||||
```sh
|
||||
cd coder
|
||||
|
||||
CODER_ACCESS_URL=https://coder.example.com docker-compose up
|
||||
```
|
||||
|
||||
> Without `CODER_ACCESS_URL` or `CODER_TUNNEL` set, Coder will bind to `localhost:7080`. This will only work for Docker-based templates.
|
||||
|
||||
4. Visit the web ui via the configured url. You can add `/login` to the base url to create the first user via the ui.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user