Skip to content

fix: example: update docker-local to use host-gateway #1507

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 17, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
examples: set access url in template instead of in docker-compose
  • Loading branch information
johnstcn committed May 17, 2022
commit fa1d7c52f51f554b22949ddcdfd20f8f57c91c96
1 change: 0 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ services:
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"
CODER_ACCESS_URL: "http://host.docker.internal:7080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
Expand Down
4 changes: 4 additions & 0 deletions examples/docker-local/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ provider "docker" {
host = "unix:///var/run/docker.sock"
}

provider "coder" {
url = "http://host.docker.internal:7080"
}

data "coder_workspace" "me" {
}

Expand Down