Skip to main content

Self-Hosting

LifyGo can be deployed on any Linux server capable of running Docker. A small VPS (such as a DigitalOcean Droplet or Hetzner Cloud instance) is sufficient for most deployments.

Prerequisites

  • Ubuntu 22.04 or newer
  • Docker
  • Docker Compose
  • A domain name pointing to your server
  • An SMTP account (Gmail, Zoho, or another provider)

1. Clone the Repository


2. Configure the Environment

Update the .env file with your configuration. At minimum:

3. Start Infrastructure


4. Run Database Migrations


5. Configure Nginx

A sample Nginx configuration is available in:
The configuration:
  • Proxies requests to the API
  • Proxies requests to the dashboard
  • Supports HTTPS with Let’s Encrypt

6. Access the Dashboard

Open your browser and visit:
Sign in and configure your SMTP settings.

Maintenance

To keep your deployment healthy:
  • Regularly back up your PostgreSQL database.
  • Keep your ENCRYPTION_KEY safe. Without it, encrypted SMTP passwords cannot be recovered.
  • Pull the latest repository changes and restart your Docker containers when updating LifyGo.