chore: use docker host in docker-compose (#1592)

This commit is contained in:
Ben Potter
2022-05-19 11:49:22 -05:00
committed by GitHub
parent 67333b6186
commit c47b6f0381
3 changed files with 4 additions and 7 deletions

View File

@ -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:

View File

@ -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" {

View File

@ -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" {