Skip to main content

Prerequisites Check

Before starting the installation, ensure you have:

Server Requirements

A Linux server meeting the system requirements

Domain Name

A registered domain pointing to your server’s IP address

Docker Installed

Docker Engine 24.0+ and Docker Compose 2.20+

SSH Access

Root or sudo access to your server

Installation Methods

Docker Compose Installation

This is the recommended method for most deployments.

Step 1: Install Docker and Docker Compose

1

Update system packages

2

Install Docker

Log out and back in for group changes to take effect.
3

Verify Docker installation

You should see Docker version 24.0+ and Docker Compose version 2.20+.

Step 2: Download AppFlowy Cloud

1

Clone the repository

2

Checkout the latest stable release

Step 3: Configure Environment Variables

1

Copy the example environment file

2

Edit the environment file

Update the following critical variables:
3

Generate secure secrets

Generate random secrets for JWT and database passwords:

Step 4: Initialize the Database

1

Start PostgreSQL container

2

Wait for PostgreSQL to be ready

Wait until you see “database system is ready to accept connections”.
3

Run database migrations

Step 5: Start All Services

1

Start all containers

This will start:
  • AppFlowy application server
  • PostgreSQL database
  • Redis cache
  • MinIO object storage
  • GoTrue authentication service
  • Nginx reverse proxy
2

Verify all services are running

All services should show status as “Up”.
3

Check service logs

Monitor for any errors during startup.

Step 6: Configure Nginx and SSL

1

Install Certbot for Let's Encrypt

2

Obtain SSL certificate

Follow the prompts to complete SSL setup.
3

Configure auto-renewal

Step 7: Create Admin User

1

Create the first admin user

2

Verify admin user creation

Check the logs for confirmation:

Step 8: Access AppFlowy

1

Open your browser

Navigate to https://appflowy.yourdomain.com
2

Log in with admin credentials

Use the email and password you created in Step 7.
3

Complete initial setup

Follow the on-screen prompts to configure your workspace.

Post-Installation Tasks

Configure Backups

Set up automated database and storage backups. See Security Guide.

Enable Monitoring

Configure monitoring and alerting for your deployment.

Review Security

Follow the Security Guide to harden your deployment.

Invite Users

Create user accounts and invite your team members.

Troubleshooting

Check the logs for specific errors:
Common issues:
  • Port conflicts: Ensure ports 80, 443 are available
  • Insufficient memory: Check available RAM
  • Database connection failures: Verify database credentials
  1. Verify all containers are running: docker compose ps
  2. Check nginx logs: docker compose logs nginx
  3. Verify DNS resolution: nslookup appflowy.yourdomain.com
  4. Check firewall rules: Ensure ports 80/443 are open
  1. Check PostgreSQL is running: docker compose ps postgres
  2. Verify database credentials in .env
  3. Check migration logs: docker compose logs appflowy-server
  4. Try running migrations manually:
  1. Verify domain DNS is pointing to your server
  2. Check Certbot logs: sudo journalctl -u certbot
  3. Try manual certificate renewal:

Upgrading AppFlowy

1

Backup your data

Always create a backup before upgrading:
2

Pull the latest version

3

Pull new Docker images

4

Restart services

5

Run migrations

Always test upgrades in a staging environment before applying to production.

Next Steps

Configuration Guide

Fine-tune your AppFlowy deployment

Security Hardening

Secure your installation