chore(compose.yaml): allow overriding CODER_REPO (#20419)

Allows running a vendored version of Coder in our `compose.yaml` as
follows:

```
CODER_REPO=my.repo.tld/mycoder/coder CODER_VERSION=my-tag docker compose up
```

Also allows running the current "dogfood" version of Coder as follows:

```
CODER_REPO=ghcr.io/coder/coder-preview CODER_VERSION=dogfood docker compose up
```
This commit is contained in:
Cian Johnston
2025-10-22 17:15:12 +01:00
committed by GitHub
parent 5ecab7b5f0
commit 9730c86f17
+1 -1
View File
@@ -2,7 +2,7 @@ services:
coder:
# This MUST be stable for our documentation and
# other automations.
image: ghcr.io/coder/coder:${CODER_VERSION:-latest}
image: ${CODER_REPO:-ghcr.io/coder/coder}:${CODER_VERSION:-latest}
ports:
- "7080:7080"
environment: