Skip to content

Commit 0e5a67b

Browse files
authored
Add support for coder tunnel in docker-compose
CODER_ACCESS_URL=https://coder.ben.com docker-compose up # if you have a domain CODER_TUNNEL=true docker-compose up # if you want to use Coder's tunnel
1 parent 4db98b2 commit 0e5a67b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
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:

0 commit comments

Comments
 (0)