Installation
Quick Start (Docker — Recommended)
Section titled “Quick Start (Docker — Recommended)”The fastest way to get running. Requires only Docker.
git clone https://github.com/fullfinity/fullfinity.gitcd fullfinity/deploycp config.example.yaml config.yamlprintf 'SECRET_KEY: "%s"\nREFRESH_SECRET_KEY: "%s"\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" >> config.yamldocker compose upCopy the config before the first docker compose up: it is mounted into the container, and if
the file does not exist Docker creates a folder in its place and Fullfinity cannot start.
The second line appends two freshly generated signing secrets. The server refuses to start
when SECRET_KEY or REFRESH_SECRET_KEY is missing or left at a placeholder — see
Configuration. Keep a copy of both.
This starts:
- Fullfinity at
http://localhost:8000(compiled engine + built frontend) - PostgreSQL 16 database
- Valkey 8 cache
Open http://localhost:8000 and create a database when prompted.
To hear about security fixes and new versions, tick the box under Email in the create-database
form, or sign up at fullfinity.com/self-host. Your server sends
nothing; the address goes only if you ask for it (see
SELF_HOST_UPDATES_URL).
Project Structure
Section titled “Project Structure”Everything you run and edit lives in deploy/:
fullfinity/deploy/├── docker-compose.yml # Service definitions├── config.yaml # Your configuration (mounted; lists MODULE_PATHS)├── config.example.yaml # Reference config with all options├── typings/ # Type stubs for editor autocomplete└── modules/ # Your modules (volume-mounted; listed in MODULE_PATHS) └── my_module/ ├── manifest.yaml ├── models/ ├── views/ └── security/The Docker image contains the compiled engine, pre-built React frontend, and all standard modules.
Your config.yaml and your mounted module folders persist across upgrades. There is no built-in
modules folder — each module folder you mount is loaded only because it’s listed under MODULE_PATHS
in config.yaml.
Upgrading
Section titled “Upgrading”An upgrade is two steps: swap the image, then migrate the database. Nothing migrates on boot
— new code runs against the old schema until you migrate, and view/menu changes stay inert until
then too. Your config.yaml and mounted module folders are untouched throughout.
1. Pin the release you run
Section titled “1. Pin the release you run”The compose file takes its image tag from FULLFINITY_VERSION:
image: ghcr.io/fullfinity/fullfinity:${FULLFINITY_VERSION:-latest}Every release publishes both :X.Y.Z and :latest, so choosing a version is one line in a
.env file next to docker-compose.yml:
FULLFINITY_VERSION=1.0.0Leave it unset and you track :latest. That’s fine for development, but pin it in production:
an unattended docker compose pull on :latest can carry you across a major version, and
major is exactly where breaking changes and destructive migrations live. With a pin, “upgrade to
the next release” is editing that value deliberately.
2. Back up
Section titled “2. Back up”Nothing is backed up for you, and a delete migration drops columns. Take both the database
and the filestore — an image swap discards the container’s filesystem, and a database restored
without its matching filestore serves 404s for every attachment:
docker compose exec -T db pg_dump -U fullfinity mycompany > backup.sqldocker run --rm -v fullfinity_filestore:/f -v "$PWD:/out" alpine \ tar czf /out/filestore.tgz -C /f .The volume name is prefixed with your Compose project name — confirm it with docker volume ls.
If you store attachments in a bucket (FILESTORE_BACKEND: s3) that volume holds no attachments,
so the tar above backs up nothing that matters and the database dump is the whole local backup.
The files are already in object storage — but make sure versioning is enabled on that bucket,
because an attachment is deleted from it when the last record referencing it goes, and without
versioning a database restored to a point before such a deletion has rows pointing at bytes that
no longer exist.
3. Preview what changes (custom modules only)
Section titled “3. Preview what changes (custom modules only)”If you run your own modules, audit them against the new release before committing to it:
docker compose run --rm fullfinity fullfinity -c /app/config.yaml preview --db mycompanyRead-only. It lists every reference in your modules that no longer resolves and exits non-zero if
it finds any, so CI can gate on it. Without --db it prints the release’s reference changelog
instead. See Upgrade Transparency.
4. Swap the image and migrate
Section titled “4. Swap the image and migrate”docker compose pull # fetch the new imagedocker compose stop fullfinity # take the app out of servicedocker compose run --rm fullfinity \ fullfinity -c /app/config.yaml -db mycompany upgradedocker compose up -d # back in service, on the new codeStopping the app first is what keeps new code from serving an unmigrated schema. upgrade is an
alias for -u all: it runs the additive schema sync (which never drops a column on a code diff)
and replays the schema-change ledger in one atomic transaction, rolling the whole thing back on
any failure. It is idempotent — safe to re-run.
Running more than one database? Swap -db mycompany for --all-databases; each database is
upgraded in its own transaction and you get a pass/fail summary at the end.
See Migrations & Upgrades for what a migration can and cannot do.
Installing Modules
Section titled “Installing Modules”After the server is running, create a database and install modules:
- Open
http://localhost:8000 - Use the database selector to create a new database
- Open Apps to install modules (sales, invoicing, inventory, etc.)
Or via CLI:
docker compose exec fullfinity fullfinity -c /app/config.yaml -db mycompany --init core,sales,invoicing --init-onlyIs there a native install?
Section titled “Is there a native install?”No. Fullfinity is distributed as a container image, and that is the only supported way to run it.
The engine ships compiled inside that image rather than as source, so there is nothing to pip install — a “native” install would need a package that is not published.
This is not a limitation in practice: your modules, your configuration and your files all live OUTSIDE the image, mounted in (see Project Structure above). You edit them on the host with your own tools, and the container is just the runtime.
Behind a Reverse Proxy
Section titled “Behind a Reverse Proxy”In production the application sits behind nginx (or another proxy), usually with TLS terminating at a CDN. Several things in that layer are load-bearing, and most of them fail silently — each is explained after the complete example.
Complete nginx example
Section titled “Complete nginx example”A site file (e.g. /etc/nginx/conf.d/fullfinity.conf) for nginx on the same host as the
container, terminating TLS itself. Replace erp.example.com and the certificate paths:
map $http_upgrade $fullfinity_connection { default upgrade; '' close;}
server { listen 80; server_name erp.example.com; return 301 https://$host$request_uri;}
server { listen 443 ssl; http2 on; server_name erp.example.com;
ssl_certificate /etc/letsencrypt/live/erp.example.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/erp.example.com/privkey.pem;
# Attachments, imports and database restores are uploaded through the proxy; # nginx's default of 1m refuses anything larger with a 413. client_max_body_size 100m;
gzip on; gzip_proxied any; gzip_vary on; gzip_comp_level 5; gzip_min_length 1024; gzip_types application/json application/javascript text/javascript text/css text/plain application/xml image/svg+xml;
# Real-time channel: chat, presence, notifications. location /api/ws { proxy_pass http://127.0.0.1:8000; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $fullfinity_connection; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto https; proxy_set_header X-Client-Port $remote_port; proxy_read_timeout 3600s; }
# Everything else. NEVER add X-DB-NAME here (see below). location / { proxy_pass http://127.0.0.1:8000; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto https; proxy_set_header X-Client-Port $remote_port; # Above the application's own 120s worker timeout, so a long report or # import fails with the application's error rather than nginx's 504. proxy_read_timeout 300s; }}And in docker-compose.yml, on the fullfinity service:
ports: - "127.0.0.1:8000:8000" # reachable only through nginxenvironment: FORWARDED_ALLOW_IPS: "*" # trust the proxy's X-Forwarded-For / -Protohttp2 on; needs nginx 1.25.1 or later; on an older nginx write listen 443 ssl http2; instead.
Behind a CDN that terminates TLS (Cloudflare and similar), drop the port-80 redirect server and
the ssl_* lines and listen 80; instead — keep X-Forwarded-Proto https exactly as written,
for the reason below.
Trust the proxy, and only the proxy
Section titled “Trust the proxy, and only the proxy”The application takes the visitor’s address from X-Forwarded-For only when the request came
from an address listed in FORWARDED_ALLOW_IPS. Leave it unset and every user appears to come
from the proxy: rate limits count all of them as one client and audit trails record nginx’s
address. * is safe only because the port is bound to 127.0.0.1 — nothing but the proxy can
reach it. (Docker’s port mapping presents nginx’s connections from the bridge gateway, not from
127.0.0.1, so 127.0.0.1 would not match.)
Pass the original Host header (proxy_set_header Host $host). Links in outgoing email and the
cross-origin check on sign-in are built from it; without it the application sees 127.0.0.1:8000.
X-Client-Port is only read by integrations that must report the visitor’s source port to an
authority (see Integrations). Setting it unconditionally also
overwrites any value a client sent itself.
Tell the application the request was HTTPS
Section titled “Tell the application the request was HTTPS”proxy_set_header X-Forwarded-Proto https;The engine reads this to decide whether session cookies carry the Secure flag. Where TLS
terminates at a CDN the origin genuinely speaks plain HTTP, so nginx must assert https — the
scheme it sees is not the scheme the visitor used. Omit it and cookies are set without Secure,
which a browser on an HTTPS page then refuses to send back: sign-in appears to succeed and the
next request is anonymous.
Never set X-DB-NAME
Section titled “Never set X-DB-NAME”That header names the database to serve and beats the db cookie. A proxy that sets it puts
every visitor into the same database regardless of who they are. Nothing sets it by default; the
rule is simply never to add it.
Give WebSockets their own location
Section titled “Give WebSockets their own location”The /api/ws location in the example carries the Upgrade and Connection headers. Without
them the connection is proxied as ordinary HTTP and real-time delivery — chat, presence,
notifications — silently never connects. Its long proxy_read_timeout keeps an idle socket from
being cut after nginx’s default 60 seconds.
Turn compression on properly
Section titled “Turn compression on properly”Two nginx defaults each disable it independently, so gzip on alone does nothing here:
gzip_proxied defaults to off, meaning nginx compresses nothing that came from an upstream —
and everything here is proxied. gzip_types defaults to text/html alone, which excludes
application/json. List text/javascript as well as application/javascript: nginx matches
the list literally, and scripts are served as text/javascript. A record’s form-load payload is
roughly 61KB raw and 9KB compressed.
Where a CDN sits in front this is invisible in a browser (the CDN compresses its own leg), which is exactly why it gets missed — the uncompressed hop is origin to edge, and it is paid on every request.
Bind the application to localhost
Section titled “Bind the application to localhost”The 127.0.0.1:8000:8000 port mapping in the example means the only way in is through the
proxy. Published as plain 8000:8000, the application port is reachable directly, bypassing
every rule above — and FORWARDED_ALLOW_IPS: "*" would then let anyone claim any address.
Verify Installation
Section titled “Verify Installation”- Open
http://localhost:8000— you should see the login page or database selector - Create a database and install the
coremodule - Log in with the admin credentials you set during database creation
Next Steps
Section titled “Next Steps”- Configuration — All config options explained
- CLI Reference — Server and module management commands
- Quick Start — Create your first module