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
+4 -1
View File
@@ -8,11 +8,14 @@ services:
- "7080:7080"
environment:
CODER_PG_CONNECTION_URL: "postgresql://${POSTGRES_USER:-username}:${POSTGRES_PASSWORD:-password}@database/${POSTGRES_DB:-coder}?sslmode=disable"
CODER_ADDRESS: "0.0.0.0:7080"
# You'll need to set CODER_ACCESS_URL to an IP or domain
# that workspaces can reach. This cannot be localhost
# or 127.0.0.1 for non-Docker templates!
CODER_ADDRESS: "0.0.0.0:7080"
CODER_ACCESS_URL: "${CODER_ACCESS_URL}"
# Alternatively, you can enable CODER_TUNNEL for
# proof-of-concept deployments.
CODER_TUNNEL: "${CODER_TUNNEL:-false}"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
depends_on: