Repository navigation
Self Hosting the Sync Server
The FocusFlow sync server is a small, dependency-free Node.js program (or one Docker container). It stores only encrypted files and has no public sign-up: you create accounts.
One compose.yaml runs the FocusFlow web app and the sync server together, on one address. The web app forwards sync requests to the server, so there's no CORS to set up. The images are published for amd64 and arm64.
curl -O https://raw.githubusercontent.com/Chuckworks-Engineering/FocusFlow/main/compose.yaml
printf 'FOCUSFLOW_USER=alex\nFOCUSFLOW_PASSWORD=choose-a-long-password\n' > .env
docker compose up -dThe account in .env is created the first time the server starts. Open http://<host>:8080. In Sync → FocusFlow server, enter the same address you open FocusFlow at, with that account, on the web and on Android.
-
Account: once you're syncing, Sync → Account shows your signed-in devices (sign out any of them) and lets you change the account password. This is the sign-in password, not the sync passphrase that encrypts your data.
-
HTTPS is needed in the browser (except on
localhost) for sync's encryption. Add it with the bundled Caddy service (FOCUSFLOW_DOMAIN=tasks.example.com docker compose --profile https up -d) or your own reverse proxy in front of port 8080. -
Updating:
docker compose pull && docker compose up -d.
All settings, backups and account commands: docs/DOCKER.md.
The full instructions are in server/README.md. In short:
docker build -t focusflow-sync server
docker volume create focusflow-data
docker run --rm -it -v focusflow-data:/data focusflow-sync node server.mjs add-user alex
docker run -d --name focusflow-sync -p 8787:8787 -v focusflow-data:/data \
-e ALLOWED_ORIGINS=https://focusflow.example.com focusflow-sync-
Use HTTPS: put it behind a reverse proxy such as Caddy (
reverse_proxy localhost:8787). -
Accounts:
add-user,set-password,list-users,revoke-devices,remove-user. -
ALLOWED_ORIGINSmust include the address of the web app if you use FocusFlow in a browser. - Backups: back up the data folder if you like. Each device also has a full copy of your data.
-
Updating: rebuild the image from the new
server/folder and restart the container (docker build …, thendocker rm -f focusflow-syncanddocker run …as above). Your data is in the volume and stays. Attachments need the server from FocusFlow 2.0 or later.
FocusFlow is open source under the Apache-2.0 license. This wiki is generated from docs/wiki/ in the repository: edit it there.