Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fa1d7c5

Browse files
committed
examples: set access url in template instead of in docker-compose
1 parent bdef571 commit fa1d7c5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docker-compose.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ services:
77
environment:
88
CODER_PG_CONNECTION_URL: "postgresql://${POSTGRES_USER:-username}:${POSTGRES_PASSWORD:-password}@database/${POSTGRES_DB:-coder}?sslmode=disable"
99
CODER_ADDRESS: "0.0.0.0:7080"
10-
CODER_ACCESS_URL: "http://host.docker.internal:7080"
1110
volumes:
1211
- /var/run/docker.sock:/var/run/docker.sock
1312
depends_on:

examples/docker-local/main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ provider "docker" {
1515
host = "unix:///var/run/docker.sock"
1616
}
1717

18+
provider "coder" {
19+
url = "http://host.docker.internal:7080"
20+
}
21+
1822
data "coder_workspace" "me" {
1923
}
2024

0 commit comments

Comments
 (0)