Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3ded910

Browse files
authored
Add support forcoder tunnel in docker-compose (#4027)
1 parent214e594 commit3ded910

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

‎docker-compose.yaml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@ services:
88
-"7080:7080"
99
environment:
1010
CODER_PG_CONNECTION_URL:"postgresql://${POSTGRES_USER:-username}:${POSTGRES_PASSWORD:-password}@database/${POSTGRES_DB:-coder}?sslmode=disable"
11+
CODER_ADDRESS:"0.0.0.0:7080"
1112
# You'll need to set CODER_ACCESS_URL to an IP or domain
1213
# that workspaces can reach. This cannot be localhost
1314
# or 127.0.0.1 for non-Docker templates!
14-
CODER_ADDRESS:"0.0.0.0:7080"
1515
CODER_ACCESS_URL:"${CODER_ACCESS_URL}"
16+
# Alternatively, you can enable CODER_TUNNEL for
17+
# proof-of-concept deployments.
18+
CODER_TUNNEL:"${CODER_TUNNEL:-false}"
1619
volumes:
1720
-/var/run/docker.sock:/var/run/docker.sock
1821
depends_on:

‎docs/admin/configure.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ This is a quick way to allow users and workspaces outside your LAN to connect to
1212
that users and workspaces use to connect to Coder (e.g.https://coder.example.com). This
1313
should not be localhost.
1414

15+
>Access URL should be a external IP address or domain with DNS records pointing to Coder.
16+
1517
##PostgreSQL Database
1618

1719
Coder uses a PostgreSQL database to store users, workspace metadata, and other deployment information.

‎docs/install/docker.md‎

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,25 @@ an PostgreSQL container and volume.
5454

5555
3. Start Coder with`docker-compose up`:
5656

57-
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.
57+
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.
58+
59+
For proof-of-concept deployments, you can use[Coder's tunnel](../admin/configure.md#tunnel):
5860

59-
```console
61+
```sh
62+
cd coder
63+
64+
CODER_TUNNEL=true docker-compose up
65+
```
66+
67+
For production deployments, we recommend setting an[access URL](../admin/configure.md#access-url):
68+
69+
```sh
6070
cd coder
6171

62-
CODER_ACCESS_URL=https://coder.example.com
63-
docker-compose up
72+
CODER_ACCESS_URL=https://coder.example.com docker-compose up
6473
```
6574

66-
>Without`CODER_ACCESS_URL` set, Coder will bind to`localhost:7080`. This will only work for Docker-based templates.
75+
>Without`CODER_ACCESS_URL`or`CODER_TUNNEL`set, Coder will bind to`localhost:7080`. This will only work for Docker-based templates.
6776
6877
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.
6978

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp