To self-host Ever Gauzy on a managed VPS is to keep your employees, time sheets, projects, clients and invoices on a server of your own, which our teams keep up to date and monitor day and night. Ever Gauzy is an open source business management platform under the AGPL-3.0 license: ERP, CRM, HR, applicant tracking, projects and time tracking in one application. This guide follows its official Docker images at release v111.142.11 and the Caddy template of the project, and we ran every command on a Simafri VPS with 2 vCPU and 4 GB of RAM before writing it: installation with Docker Compose, PostgreSQL and Redis, HTTPS on a single address, the first sign-in, backups, restores and updates.
By Simon Vasconcelos Lee
Published on 1 December 202613 minute read
ghcr.io/ever-co, PostgreSQL 17 and Redis, with the web app and the API published on 127.0.0.1 only./api, /graphql, /public and /swg go to the API, the rest to the web app, as in the project’s own Caddy template..env file: in production, the API refuses to start or to seed without them.pg_dump and an archive of the uploaded files; to update, pull the latest images again.Ever Gauzy describes itself as an open business management platform for collaborative, on-demand and sharing economies. It is written in TypeScript, with a NestJS API and an Angular web app, and a desktop timer that reports to the same API. Its modules cover most of what a services company runs on:
On its first start against an empty database, the API creates a tenant called “Default Tenant”, an organization called “Default Company” and three accounts: a super administrator, an administrator and an employee. The web app then opens on a time tracking dashboard for that company.
Ever Gauzy is available under three licenses. Without a commercial agreement, the one that applies is the Ever Gauzy Platform Community Edition, released under the GNU Affero General Public License, version 3. You can use it free of charge, for your company or your clients, copy it and modify it. If you let people use a modified version over a network, you must make its complete source code available to them under the same license.
Ever Co. sells two commercial licenses, Small Business and Enterprise, for companies that want to keep their changes private; the project also offers its Enterprise edition to qualifying non-profit and open source projects. Ever and Gauzy are trademarks of Ever Co. LTD. Nothing in this guide needs a commercial license.
Ever Gauzy is a heavier stack than most self-hosted applications: two Node.js processes, the API and the worker, beside PostgreSQL, Redis and the web app’s nginx. Here is what we measured on our test VPS, with 2 vCPU and 4 GB of RAM, after the first start, a project and an uploaded image:
Server size therefore depends on the number of people who track their time and on the other applications you run beside it; 4 GB of RAM is a comfortable start for a team. On a managed VPS, tell us about your usage and we will recommend the right size.
Ever Gauzy publishes three images on the GitHub Container Registry: gauzy-api, the NestJS API; gauzy-worker, which fires the scheduled jobs onto Redis queues; and gauzy-webapp, nginx serving the Angular build. The project’s docker-compose.caddy.yml runs them with PostgreSQL, Redis and a Caddy container. We kept its settings and its routing, with one change: Caddy runs on the server itself, so that it can serve your other sites too, and the web app and the API are published on 127.0.0.1 for it. On a server with Docker Engine and its Compose plugin, installed from Docker’s repository for Ubuntu (Compose v2.20 or later, says the README), create the folder:
mkdir -p /opt/ever-gauzy
The API, the worker and the web app read most of their settings from .env.compose, a file of the repository with every option and its default. Download it at the tag of the release you install:
curl -fsSLo .env.compose https://raw.githubusercontent.com/ever-co/ever-gauzy/v111.142.11/.env.compose
Then put this compose.yaml next to it. The environment entries take precedence over .env.compose, which is how the project’s template sets the database, the addresses, the proxy trust, Redis and the secrets:
x-gauzy-env: &gauzy-env
NODE_ENV: production
DEMO: "false"
API_BASE_URL: https://gauzy.example.com
CLIENT_BASE_URL: https://gauzy.example.com
ALLOWED_ORIGINS: https://gauzy.example.com
DB_TYPE: postgres
DB_HOST: db
DB_PORT: "5432"
DB_NAME: gauzy
DB_USER: gauzy
DB_PASS: ${DB_PASS:?set DB_PASS in .env}
TRUST_PROXY: "1"
REDIS_ENABLED: "true"
REDIS_URL: redis://redis:6379
JWT_SECRET: ${JWT_SECRET:?set JWT_SECRET in .env}
JWT_REFRESH_TOKEN_SECRET: ${JWT_REFRESH_TOKEN_SECRET:?set JWT_REFRESH_TOKEN_SECRET in .env}
JWT_VERIFICATION_TOKEN_SECRET: ${JWT_VERIFICATION_TOKEN_SECRET:?set JWT_VERIFICATION_TOKEN_SECRET in .env}
EXPRESS_SESSION_SECRET: ${EXPRESS_SESSION_SECRET:?set EXPRESS_SESSION_SECRET in .env}
DEMO_SUPER_ADMIN_EMAIL: admin@example.com
DEMO_SUPER_ADMIN_PASSWORD: ${DEMO_SUPER_ADMIN_PASSWORD:?set DEMO_SUPER_ADMIN_PASSWORD in .env}
DEMO_ADMIN_PASSWORD: ${DEMO_ADMIN_PASSWORD:?set DEMO_ADMIN_PASSWORD in .env}
DEMO_EMPLOYEE_PASSWORD: ${DEMO_EMPLOYEE_PASSWORD:?set DEMO_EMPLOYEE_PASSWORD in .env}
services:
db:
image: postgres:17-alpine
restart: unless-stopped
environment:
POSTGRES_DB: gauzy
POSTGRES_USER: gauzy
POSTGRES_PASSWORD: ${DB_PASS:?set DB_PASS in .env}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U gauzy -d gauzy"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:8-alpine
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- redis_data:/data
api:
image: ghcr.io/ever-co/gauzy-api:latest
restart: unless-stopped
env_file: .env.compose
environment:
<<: *gauzy-env
entrypoint: ./entrypoint.compose.sh
command: ["node", "main.js"]
ports:
- "127.0.0.1:8115:3000"
volumes:
- api_public:/srv/gauzy/apps/api/public
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
worker:
image: ghcr.io/ever-co/gauzy-worker:latest
restart: unless-stopped
env_file: .env.compose
environment:
<<: *gauzy-env
GAUZY_DOCS_QUEUE_WORKER_ENABLED: "false"
entrypoint: ./entrypoint.compose.sh
command: ["node", "main.js"]
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
api:
condition: service_started
webapp:
image: ghcr.io/ever-co/gauzy-webapp:latest
restart: unless-stopped
env_file: .env.compose
environment:
NODE_ENV: production
DEMO: "false"
API_BASE_URL: https://gauzy.example.com
CLIENT_BASE_URL: https://gauzy.example.com
ports:
- "127.0.0.1:8114:4200"
depends_on:
- api
volumes:
postgres_data:
redis_data:
api_public:
The secrets go in a .env file, which Docker Compose reads on its own to fill in the ${...} values. Create it readable by root only, then start the stack:
umask 077
for k in JWT_SECRET JWT_REFRESH_TOKEN_SECRET JWT_VERIFICATION_TOKEN_SECRET EXPRESS_SESSION_SECRET; do echo "$k=$(openssl rand -hex 64)"; done > .env
for k in DB_PASS DEMO_SUPER_ADMIN_PASSWORD DEMO_ADMIN_PASSWORD DEMO_EMPLOYEE_PASSWORD; do echo "$k=$(openssl rand -hex 24)"; done >> .env
umask 022
docker compose up -d
docker compose ps
gauzy.example.com with your domain in API_BASE_URL, CLIENT_BASE_URL and ALLOWED_ORIGINS, once for the API and the worker and once for the web app, which writes the address into its JavaScript when it starts. The web app calls the API on the same address, under /api.DEMO_SUPER_ADMIN_EMAIL is the email you will sign in with as super administrator: put your own. The administrator and the employee keep their default addresses, local.admin@ever.co and employee@ever.co, with the generated passwords.DEMO_*_PASSWORD values, in 48 characters: the sign-in form takes at most 50. They only apply to the first start against an empty database, and the API refuses to seed it without them. Afterwards, passwords are changed in the application.TRUST_PROXY: "1": the API is reached only through Caddy, so it trusts exactly one proxy and counts its sign-in limits per visitor address. The default of .env.compose, false, would put every visitor in the same bucket.127.0.0.1: the web app and the API are reachable only through the reverse proxy, and the numbers are free for you to change.latest tag: it is the only tag the project publishes for these images, built from the head of the master branch, which the project moves at each stable release. On our test VPS, it was v111.142.11.postgres_data holds the database, api_public the files uploaded to the API and the icons it seeds, and redis_data the queues.The first start creates the tables and seeds the tenant, the organization and the three accounts. On our test VPS, the API answered about a minute and a half after docker compose up -d. To wait for it and check the version:
until curl -sf http://127.0.0.1:8115/api/version >/dev/null; do sleep 10; done
curl -s http://127.0.0.1:8115/api/version
The second command returns the commit the image was built from, add6ea4b… for v111.142.11; its version field was empty in this release. In docker compose logs api, the first start ends with “Database Default Seed Completed” and “Application is running”.
The worker logged that the vector extension is not available: the PostgreSQL image of the project’s template does not include pgvector, so the search through documents falls back to plain text matching. Everything else in this guide worked without it.
The web app and the API share one public address, and the reverse proxy sends each path to the right container. We tested Caddy, installed from its official Debian and Ubuntu repository: it obtains the Let’s Encrypt certificate itself, renews it, and sets X-Forwarded-For and X-Forwarded-Proto. This block follows the Caddyfile of the project’s template, with the two local ports:
gauzy.example.com {
@api path /api /api/* /graphql /public/* /swg /swg/* /swg-json /swg-yaml
handle @api {
reverse_proxy 127.0.0.1:8115 {
header_up -CF-Connecting-IP
}
}
handle {
reverse_proxy 127.0.0.1:8114
}
}
sudo systemctl reload caddy
/api, GraphQL and its subscription socket at /graphql, the uploaded files under /public, and the Swagger UI at /swg. Everything else is the web app.header_up -CF-Connecting-IP: a header a visitor could forge, removed before it reaches the API, as in the project’s template.To check both halves from the server:
curl -sI https://gauzy.example.com/
curl -s https://gauzy.example.com/api/version
The first command answers HTTP/2 200 from the web app’s nginx, through Caddy; the second returns the same version as above, from the API. We also opened an image uploaded through the API under /public: it came back as image/png.
Open your address: the web app shows its sign-in page. Sign in with the email of DEMO_SUPER_ADMIN_EMAIL and the generated password, which this command displays:
grep ^DEMO_SUPER_ADMIN_PASSWORD= /opt/ever-gauzy/.env | cut -d= -f2
On our test VPS, in a real browser, the sign-in led to the weekly time tracking dashboard of “Default Company”, with the menus for accounting, sales, tasks, jobs, employees, organization, contacts, goals and reports. We then created a project, “Simafri bench project”, and uploaded an image through the API, then found the project under Organization, Projects.
.env: change them, or remove those accounts, once your team is in place.MAIL_FROM_ADDRESS, MAIL_HOST, MAIL_PORT, MAIL_USERNAME and MAIL_PASSWORD settings of .env.compose point to a placeholder relay: add yours to the x-gauzy-env block, then run docker compose up -d. On a Simafri VPS, applications send through an authenticated SMTP relay on port 587, which also gives your email the best deliverability. We did not test sending on our VPS.SENTRY_DSN is empty in .env.compose, which keeps Sentry off, as its comment explains.Everything lives in three places: the PostgreSQL database, the api_public volume with the uploaded files, and your .env file, whose secrets sign the sessions and tokens. Redis only holds queues. The PostgreSQL image includes pg_dump, and the API image includes tar. The dump holds every employee, client and invoice, so create the copies readable by root only, with umask 077 inside parentheses: the rest of your session keeps its usual mask. A file that already exists keeps its permissions when it is overwritten, so the find line first closes the copies already in the folder, and stops the backup if it cannot:
(
umask 077
find . -maxdepth 1 \( -name "gauzy-*.dump" -o -name "files-*.tar.gz" -o -name "env-*.bak" \) -exec chmod 600 {} + || exit 1
docker compose exec -T db pg_dump -U gauzy -Fc gauzy > gauzy-$(date +%F).dump
docker compose exec -T api tar -C /srv/gauzy/apps/api -czf - public > files-$(date +%F).tar.gz
cp .env env-$(date +%F).bak
)
On our test VPS, the dump weighed about 3 MB and the files archive about 4.7 MB, most of it the seed data. Schedule this copy and send it off the server. Stored on the disk, the files are also included in the server’s nightly backups.
On the same or a new installation, with the same compose.yaml, .env.compose and .env, stop the application, replace the database with an empty one, load the dump and the files, then start the application again:
docker compose stop api worker webapp &&
docker compose exec -T db dropdb -U gauzy gauzy &&
docker compose exec -T db createdb -U gauzy gauzy &&
docker compose exec -T db pg_restore -U gauzy -d gauzy --exit-on-error --no-owner < gauzy-2026-11-20.dump &&
docker compose run --rm --no-deps -T --entrypoint tar api -C /srv/gauzy/apps/api -xzf - < files-2026-11-20.tar.gz &&
docker compose start api worker webapp
--exit-on-error stops the restore at the first error, and the && stop the sequence there: the application stays stopped. We checked it with a truncated dump: pg_restore stopped on “could not read from input file: end of file”, and the sequence ended there. Start again from dropdb once the cause is fixed.api_public volume, while the API is stopped.We tested the whole cycle on our VPS with these exact commands: dump and archive, then a second project created after the backup, the uploaded files deleted from the volume, the database deleted and created again empty, and the restore. The project from before the backup came back, the one created after it was gone, the image answered again under /public, the API did not seed the restored database again, and the super administrator signed in at once in the browser.
Ever Gauzy marks one stable release as “latest” on GitHub, v111.142.11 of 29 October 2026 when we tested, and publishes prereleases several times a day. The registries carry only the latest tag, built from the master branch of the stable releases, so an update is a pull of the same tag. The API runs its database migrations at startup. Take a backup, download the .env.compose of the new release tag as in the installation, then pull the new images and recreate the containers:
docker compose pull
docker compose up -d
docker compose images
curl -s https://gauzy.example.com/api/version
/api/version tells you which release the API runs: compare it with the tag on the releases page.docker compose pull may bring a new release. Run it when you choose, after a backup, and read the release notes first.Self-hosting means running the server on top of the application. On a managed VPS, our teams take charge of the server and proactively monitor your instance; Ever Gauzy remains your software, with your data and your settings.
| Topic | Our teams | You |
|---|---|---|
| The server | System and security updates, server interventions included | The timing that suits you |
| Monitoring | Server monitored 24/7, with intervention without waiting for your call | Your organizations, your people and your settings in Ever Gauzy |
| Ever Gauzy | Proactive monitoring: errors, slowdowns, database, memory and disk space spotted, fix recommended | Its installation, updates, integrations and settings, which you apply, yourself or through your AI assistant |
| Users | The server that carries them, monitored and backed up | Accounts, roles and permissions |
| Backups | Every night, encrypted and kept off the machine; restores included | Ever Gauzy’s own database dumps and file archives, and the restore request, when you need one |
| Migration | Your current server migrated, free of charge | The timing of the switch |
If you would rather have our teams work inside the application itself, that service is billed by the hour or at a fixed rate, with an estimate shared before the work starts.
With a Simafri Managed VPS, our teams keep your Ever Gauzy instance’s server up to date, monitor it day and night and step in without waiting for your call; they also proactively monitor your instance and recommend useful fixes, which you apply, yourself or through your AI assistant. Backups are encrypted every night and kept off the machine, restores are included, and migrating your current server is free.
Yes. The Community Edition is under the AGPL-3.0 license: you can run it for your company or your clients with no license to buy, and you share your changes if you offer a modified version over a network. Ever Co. also sells Small Business and Enterprise licenses for those who want to keep their changes private. What remains is the cost of the server that runs it.
Download the .env.compose of the release, then run the gauzy-api, gauzy-worker and gauzy-webapp images with PostgreSQL 17 and Redis in a compose.yaml based on the project’s docker-compose.caddy.yml. Put the four signing secrets, the database password and the three seed passwords in a .env file, set your https address in API_BASE_URL, CLIENT_BASE_URL and ALLOWED_ORIGINS, run docker compose up -d, and route /api, /graphql, /public and /swg to the API in your reverse proxy.
The first start creates a super administrator from DEMO_SUPER_ADMIN_EMAIL, admin@ever.co by default, with the password of DEMO_SUPER_ADMIN_PASSWORD. In production, the API refuses to seed while that password, or those of the administrator and the employee, is missing or left at its published default: generate all three.
In production, it refuses to start while JWT_SECRET, JWT_REFRESH_TOKEN_SECRET, JWT_VERIFICATION_TOKEN_SECRET or EXPRESS_SESSION_SECRET is empty or left at a well-known value. Generate each with openssl rand -hex 64 and pass them in the environment of the API and the worker.
On our test VPS, the API used about 1 GB, the worker 480 to 670 MB, PostgreSQL about 105 MB and Redis 20 MB: about 1.7 GB for the whole server. The images take about 4.9 GB of disk. A server with 4 GB of RAM ran it with 2.4 GB to spare.
Dump the database with pg_dump -Fc from the PostgreSQL container, archive /srv/gauzy/apps/api/public from the API container, and keep a copy of your .env file. To restore, stop the API, the worker and the web app, recreate the database empty, load the dump with pg_restore --exit-on-error and the archive with tar, then start them again.
Take a backup, download the .env.compose of the new release, then run docker compose pull and docker compose up -d. The project publishes only the latest tag, built from its stable branch, and the API applies its migrations at startup.
A managed VPS covers the server: system, security, monitoring and backups. Our teams also proactively monitor your instance and recommend useful fixes, which you apply. Work inside the application is billed by the hour or at a fixed rate.
Simafri
Let's talk about your project
Tell us what you need in a few words: we will get back to you quickly.
Thank you! Your request has been sent. We'll get back to you shortly.
Prefer email? Write to us at support@simafri.com.