Coder provisions development environments on your own infrastructure. You define a workspace as a Terraform template and open it in your browser or your local editor.
This stack runs Coder with a Tailscale sidecar, as described in the standard setup.
| Item | Value |
|---|---|
| Web interface | https://coder.<tailnet>.ts.net |
| Service port | 7080 |
| Images | ghcr.io/coder/coder |
postgres:17 |
|
| Data | ./coder-data/coder-home (Coder home folder) |
./coder-data/coder-data (PostgreSQL database) |
-
Create the home folder yourself and make user
1000its owner. Docker creates missing folders as userroot. The Coder image runs as user and group1000and then fails withmkdir /home/coder/.cache: permission denied.mkdir -p coder-data/coder-home sudo chown 1000:1000 coder-data/coder-home
-
Set these values in
.env:CODER_ACCESS_URL. The address of the web interface,https://coder.<tailnet>.ts.net.POSTGRES_PASSWORD. The password of the database.
- Extra container. The stack runs a
databasecontainer with PostgreSQL. It uses the network of thetailscalecontainer as well, so Coder reaches it atlocalhost. PostgreSQL therefore also listens on port5432of the Tailscale IP address of the device. - Docker socket. Coder mounts
/var/run/docker.sockread-only, so that templates can use Docker on the host. - Image version.
CODER_VERSIONin.envselects the version of the Coder image.
Open the web interface and create the first account, which becomes the administrator.