mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
chore: use docker host in docker-compose (#1592)
This commit is contained in:
@ -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:
|
||||
|
@ -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" {
|
||||
|
@ -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" {
|
||||
|
Reference in New Issue
Block a user