File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ services:
7
7
environment :
8
8
CODER_PG_CONNECTION_URL : " postgresql://username:password@database/coder?sslmode=disable"
9
9
CODER_ADDRESS : " 0.0.0.0:7080"
10
+ CODER_ACCESS_URL : " http://host.docker.internal:7080"
11
+ volumes :
12
+ - /var/run/docker.sock:/var/run/docker.sock
10
13
depends_on :
11
14
database :
12
15
condition : service_healthy
Original file line number Diff line number Diff line change @@ -43,6 +43,10 @@ resource "docker_container" "workspace" {
43
43
dns = [" 1.1.1.1" ]
44
44
command = [" sh" , " -c" , coder_agent . dev . init_script ]
45
45
env = [" CODER_AGENT_TOKEN=${ coder_agent . dev . token } " ]
46
+ host {
47
+ host = " host.docker.internal"
48
+ ip = " host-gateway"
49
+ }
46
50
volumes {
47
51
container_path = " /home/coder/"
48
52
volume_name = docker_volume. coder_volume . name
You can’t perform that action at this time.
0 commit comments