diff --git a/docker-compose.yaml b/docker-compose.yaml index c9696122e0166..0df9b6713c19a 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,12 +1,15 @@ version: "3.9" services: coder: - image: ghcr.io/coder/coder:v${CODER_VERSION:-0.5.6}-${ARCH:-amd64} + image: ghcr.io/coder/coder:v${CODER_VERSION:-0.5.10}-${ARCH:-amd64} ports: - "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 + # externally-reachable IP to use non-Docker examples! + CODER_ACCESS_URL: "${CODER_ACCESS_URL:-http://host.docker.internal:7080}" volumes: - /var/run/docker.sock:/var/run/docker.sock depends_on: diff --git a/examples/docker-image-builds/main.tf b/examples/docker-image-builds/main.tf index 122bd20c3abcc..9001960c99c15 100644 --- a/examples/docker-image-builds/main.tf +++ b/examples/docker-image-builds/main.tf @@ -42,9 +42,6 @@ provider "docker" { } provider "coder" { - # The below assumes your Coder deployment is running in docker-compose. - # If this is not the case, either comment or edit the below. - url = "http://host.docker.internal:7080" } data "coder_workspace" "me" { diff --git a/examples/docker/main.tf b/examples/docker/main.tf index 44d56e38d1151..a999f66d158f1 100644 --- a/examples/docker/main.tf +++ b/examples/docker/main.tf @@ -49,9 +49,6 @@ provider "docker" { } provider "coder" { - # The below assumes your Coder deployment is running in docker-compose. - # If this is not the case, either comment or edit the below. - url = "http://host.docker.internal:7080" } data "coder_workspace" "me" {