Add support for coder tunnel in docker-compose (#4027)

This commit is contained in:
Ben Potter
2022-09-13 14:53:41 +00:00
committed by GitHub
parent 214e59452f
commit 3ded910cca
3 changed files with 20 additions and 6 deletions
+14 -5
View File
@@ -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.