Prerequisites Check
Before starting the installation, ensure you have:Server Requirements
Domain Name
Docker Installed
SSH Access
Installation Methods
- Docker Compose
- Kubernetes
Docker Compose Installation
This is the recommended method for most deployments.Step 1: Install Docker and Docker Compose
Update system packages
Install Docker
Verify Docker installation
Step 2: Download AppFlowy Cloud
Clone the repository
Checkout the latest stable release
Step 3: Configure Environment Variables
Copy the example environment file
Edit the environment file
Generate secure secrets
Step 4: Initialize the Database
Start PostgreSQL container
Wait for PostgreSQL to be ready
Run database migrations
Step 5: Start All Services
Start all containers
- AppFlowy application server
- PostgreSQL database
- Redis cache
- MinIO object storage
- GoTrue authentication service
- Nginx reverse proxy
Verify all services are running
Check service logs
Step 6: Configure Nginx and SSL
Install Certbot for Let's Encrypt
Obtain SSL certificate
Configure auto-renewal
Step 7: Create Admin User
Create the first admin user
Verify admin user creation
Step 8: Access AppFlowy
Open your browser
https://appflowy.yourdomain.comLog in with admin credentials
Complete initial setup
Post-Installation Tasks
Configure Backups
Enable Monitoring
Review Security
Invite Users
Troubleshooting
Services fail to start
Services fail to start
- Port conflicts: Ensure ports 80, 443 are available
- Insufficient memory: Check available RAM
- Database connection failures: Verify database credentials
Cannot access the web interface
Cannot access the web interface
- Verify all containers are running:
docker compose ps - Check nginx logs:
docker compose logs nginx - Verify DNS resolution:
nslookup appflowy.yourdomain.com - Check firewall rules: Ensure ports 80/443 are open
Database migration fails
Database migration fails
- Check PostgreSQL is running:
docker compose ps postgres - Verify database credentials in
.env - Check migration logs:
docker compose logs appflowy-server - Try running migrations manually:
SSL certificate issues
SSL certificate issues
- Verify domain DNS is pointing to your server
- Check Certbot logs:
sudo journalctl -u certbot - Try manual certificate renewal:
Upgrading AppFlowy
Backup your data
Pull the latest version
Pull new Docker images
Restart services
Run migrations