Deploy with Coolify
Deploy OpenPanel using Coolify's one-click service
Coolify is an open-source, self-hosted platform that simplifies deploying applications. OpenPanel is available as a one-click service in Coolify, making deployment quick and easy.
Prerequisites
- A Coolify instance installed and running
- A server with at least 2GB RAM (4GB+ recommended)
- Domain name configured in Coolify (optional but recommended)
Quick Start
Create a New Resource
- Log in to your Coolify dashboard
- Navigate to your project
- Click "New Resource" or "Add Service"
- Select "One-Click Services" or "Docker Compose"
Select OpenPanel
- Search for "OpenPanel" in the services list
- Click on OpenPanel to select it
- The service template will be automatically filled in with the required configuration
Configure Your Deployment
Coolify will automatically configure most settings, but you may want to customize:
- Domain: Set your domain name for the dashboard
- Environment Variables: Configure optional settings like:
ALLOW_REGISTRATION: Set tofalseto disable public registrationALLOW_INVITATION: Set totrueto allow user invitationsRESEND_API_KEY: Your Resend API key for email featuresEMAIL_SENDER: Email sender addressOPENAI_API_KEY: OpenAI API key for AI features (optional)AI_MODEL: AI model to use (gpt-4o-mini,gpt-4o, orclaude-3-5)
Coolify automatically handles:
- Database setup (PostgreSQL)
- Redis configuration
- ClickHouse setup
- SSL certificates
- Service health checks
- Automatic restarts
Deploy
- Review your configuration
- Click "Deploy" or "Save"
- Coolify will automatically:
- Pull the required Docker images
- Start all services
- Run database migrations
- Set up SSL certificates (if domain is configured)
Wait for all services to become healthy. You can monitor the deployment progress in the Coolify dashboard.
Access Your Dashboard
Once deployment is complete, you can access OpenPanel at your configured domain. The first user to register will become the admin account.
By default, registration is disabled after the first user is created. Make sure to register your admin account first!
Service Structure
Coolify deploys OpenPanel with the following services:
- opapi: OpenPanel API server (handles
/apiroutes) - opdashboard: OpenPanel dashboard (frontend)
- opworker: Background worker for processing events
- opdb: PostgreSQL database
- opkv: Redis cache
- opch: ClickHouse analytics database
Configuration
Environment Variables
You can configure OpenPanel through environment variables in Coolify. Coolify automatically sets the required database and connection variables.
For a complete reference of all available environment variables, see the Environment Variables documentation.
Coolify-Specific Notes
Coolify automatically handles these variables:
DATABASE_URL: PostgreSQL connection stringREDIS_URL: Redis connection stringCLICKHOUSE_URL: ClickHouse connection stringNEXT_PUBLIC_API_URL: API endpoint URL (set viaSERVICE_FQDN_OPAPI)NEXT_PUBLIC_DASHBOARD_URL: Dashboard URL (set viaSERVICE_FQDN_OPDASHBOARD)COOKIE_SECRET: Automatically generated secret
You can configure optional variables like ALLOW_REGISTRATION, RESEND_API_KEY, OPENAI_API_KEY, etc. through Coolify's environment variable interface.
Updating OpenPanel
To update OpenPanel in Coolify:
- Navigate to your OpenPanel service
- Click "Redeploy" or "Update"
- Coolify will pull the latest images and restart services
Database migrations run automatically when the API service starts, so updates are seamless.
Scaling
You can scale the worker service in Coolify:
- Navigate to your OpenPanel service
- Edit the
opworkerservice configuration - Adjust the replica count
- Save and redeploy
Troubleshooting
Services Not Starting
- Check service logs in Coolify dashboard
- Verify all environment variables are set correctly
- Ensure your server has enough resources (RAM, disk space)
Database Connection Issues
- Verify the database service (
opdb) is running - Check that
DATABASE_URLis correctly formatted - Review database logs in Coolify
SSL Certificate Issues
If SSL certificates aren't being issued:
- Verify your domain DNS is pointing to Coolify
- Check Coolify's SSL/TLS settings
- Review Coolify logs for Let's Encrypt errors
Health Check Failures
If health checks are failing:
- Check service logs for errors
- Verify all dependencies are running
- Increase health check timeout if needed
Using Your Own Database
If you want to use an external PostgreSQL database:
- Create a new PostgreSQL database in Coolify or use an external service
- Update the
DATABASE_URLenvironment variable in your OpenPanel service - Update
DATABASE_URL_DIRECTto match - Redeploy the service
The same applies to Redis and ClickHouse if you want to use external services.
Backup and Restore
Backup
Coolify provides built-in backup functionality:
- Navigate to your database service (
opdb) - Configure backup settings
- Set up backup schedule
- Backups will be stored according to your Coolify configuration
Manual Backup
You can also create manual backups:
- Use Coolify's terminal access
- Export the database:
Restore
To restore from a backup:
- Use Coolify's terminal access
- Restore the database:
Next Steps
- Configure email settings for password resets and invitations
- Set up AI integration for the analytics assistant
- Configure SDK to track events from your applications