What you will set up
Actual Budget is a budgeting app that runs in your browser. Its server keeps your budget in sync between your computers and phones, so you can plan on one and check on another.
Here the server runs as one Compose service, under a user of its own called actual, with Caddy in front for HTTPS.
The Docker setup follows our tested rootless Docker guide on Debian 13. The app version and the app-specific behaviour below come from the tested Podman guide on a Melonslab server; the Docker steps for this app were not re-tested end to end. In the Podman test, Actual used about 250 MB of memory at idle, so the smallest of our Standard plans had room to spare.
Before you start
You need:
- a server set up as in the rootless Docker guide, with Caddy running;
- a name for it, such as
budget.example.com, with an A record and an AAAA record pointing at your server.
The examples use budget.example.com for the name and 203.0.113.10 for your server's IPv4 address. Replace them with your own throughout.
1. Create the user
As root:
useradd -m -s /bin/bash -U actual
loginctl enable-linger actual
Do not add the user to the docker group. The daemon is rootless and belongs to this user.
2. Describe the Compose service
mkdir -p /home/actual/actual-budget/data
cat > /home/actual/actual-budget/compose.yaml <<'YAML'
services:
actual:
image: docker.io/actualbudget/actual-server:latest
ports:
# Only Caddy, on this server, can reach Actual: the port is not open to the internet.
- "127.0.0.1:8084:5006"
environment:
ACTUAL_TRUSTED_PROXIES: "203.0.113.10"
volumes:
- ./data:/data
restart: always
YAML
chown -R actual:actual /home/actual/actual-budget
Actual allows five failed logins per 15 minutes from each IP address. It takes the visitor's address from what Caddy passes on, but by default only from proxies on private addresses, and Caddy's connections reach the container from the server's own IPv4 address. ACTUAL_TRUSTED_PROXIES names that address. Without it, every visitor would share one address, and a few wrong passwords from anyone would lock everyone out.
Start it:
uid=$(id -u actual)
runuser -u actual -- env HOME=/home/actual XDG_RUNTIME_DIR=/run/user/$uid \
DOCKER_HOST=unix:///run/user/$uid/docker.sock PATH=/usr/bin:/bin \
bash -lc "cd /home/actual/actual-budget && docker compose pull && docker compose up -d && docker compose logs -f"
When the log says Listening on :::5006..., press Ctrl+C.
3. Put Caddy in front
As root, add this block to the end of /home/caddy/Caddyfile:
budget.example.com {
reverse_proxy 127.0.0.1:8084
}
chown caddy:caddy /home/caddy/Caddyfile
uid=$(id -u caddy)
runuser -u caddy -- env HOME=/home/caddy XDG_RUNTIME_DIR=/run/user/$uid \
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$uid/bus PATH=/usr/bin:/bin \
bash -lc "export DOCKER_HOST=unix:///run/user/$uid/docker.sock; cd /home/caddy/caddy && docker compose restart caddy"
Restarting Caddy briefly interrupts every site it serves. Caddy gets a certificate for budget.example.com and renews it by itself. Actual only runs in the browser over HTTPS.
4. Set the server password
Open https://budget.example.com. The first time, Actual asks you to set a server password, which protects access to your budgets. Then create a new budget, or import one from a file.
On your other devices, open the same address and log in with that password; your budget syncs between them. Actual can also encrypt a budget on your devices before it is synced, with a password of its own, if you want the server to hold only encrypted data.
5. Keep it up to date
Add the weekly docker-update.service and docker-update.timer from the rootless Docker guide, with WorkingDirectory=/home/actual/actual-budget, then enable the timer as actual. The service pulls new images and recreates the Compose service.
6. Back up
As root, stop the service for a few seconds so the copy is consistent:
uid=$(id -u actual)
runuser -u actual -- env HOME=/home/actual XDG_RUNTIME_DIR=/run/user/$uid \
DOCKER_HOST=unix:///run/user/$uid/docker.sock PATH=/usr/bin:/bin \
bash -lc "cd /home/actual/actual-budget && docker compose stop"
umask 077
mkdir -p /home/actual/backup
tar czf /home/actual/backup/actual-data.tgz -C /home/actual/actual-budget data
runuser -u actual -- env HOME=/home/actual XDG_RUNTIME_DIR=/run/user/$uid \
DOCKER_HOST=unix:///run/user/$uid/docker.sock PATH=/usr/bin:/bin \
bash -lc "cd /home/actual/actual-budget && docker compose up -d"
The archive holds the server's account database and every budget file. Copy it to another machine afterwards: a backup on the same server does not survive losing the server. Actual can also export a budget from its settings, as a file you can import again.
Troubleshooting
Logging in says there were too many attempts. Five wrong passwords from your address lock logins from it for 15 minutes, even with the right password. Wait, and try again.
One person's wrong passwords lock everyone out. ACTUAL_TRUSTED_PROXIES in step 2 must be the server's IPv4 address, the one Caddy's connections arrive from.
The app does not start in the browser. Open it at https://budget.example.com: Actual needs a secure connection to run.
Compose says permission denied. Run it as actual from /home/actual/actual-budget, with DOCKER_HOST pointing at the user's socket.
Your budget, in Sweden
With Actual on a Melonslab server, your budget is stored in Sweden, under Swedish and EU law, on a server you control.