Azure VM
The template (deploy/azure/main.bicep, compiled to azuredeploy.json) creates, in a resource group you choose:
- an Ubuntu 24.04 LTS VM,
- a managed data disk mounted at
/var/lib/bunker(formatted once, never reformatted), - a static public IP with a free DNS name
https://<label>.<region>.cloudapp.azure.com, - a network security group that allows ports 80 and 443 only (SSH is off unless you turn it on).
On first boot, cloud-init runs the Linux installer with Bunker listening on 127.0.0.1:8080, and puts Caddy in front for HTTPS (Let’s Encrypt).
Parameters
Section titled “Parameters”| Parameter | Default | |
|---|---|---|
name |
bunker |
Prefix for the VM and its resources |
location |
the resource group’s region | |
dnsLabel |
bunker-<unique> |
Bunker will be at https://<label>.<region>.cloudapp.azure.com |
vmSize |
Standard_B2s |
Also Standard_B1ms (trying it out), B2ms, D2s_v5, D4s_v5. B2s comfortably serves a few thousand people |
dataDiskSizeGiB |
32 |
|
adminUsername |
bunkeradmin |
|
authenticationType |
password |
or sshPublicKey |
adminPasswordOrKey |
Required | |
allowSsh |
false |
Prefer Azure Bastion, the serial console or Run Command |
setupCode |
generated | One-time code for the setup page |
bunkerVersion |
latest |
e.g. v1.2.0 |
Outputs
Section titled “Outputs”After the deployment finishes (Deployment → Outputs):
| Output | |
|---|---|
url |
Bunker’s address |
setupUrl |
Open this and enter the code (give it a few minutes after deployment) |
setupCode |
The one-time code |
entraRedirectUri |
The redirect URI to register if you add Entra sign-in |
ssh |
SSH command, when allowSsh is on |
Using your own domain
Section titled “Using your own domain”- Point a DNS record at the VM’s public IP.
- Edit
/etc/bunker/bunker.envand setBUNKER_URL=https://bunker.yourcompany.com. - Edit
/etc/caddy/Caddyfileand replace thecloudapp.azure.comname with your domain. sudo systemctl restart bunker caddy
Container Apps (evaluation only)
Section titled “Container Apps (evaluation only)”deploy/azure/container-apps/ deploys Bunker to Azure Container Apps. It uses the container’s local disk, so data is lost on restart. Use it to look around, not for real work. Never point SQLite at an Azure Files share.