Skip to content

Installation

Terminal window
composer require stumason/laravel-coolify
Terminal window
php artisan coolify:install

This will:

  • Publish config/coolify.php
  • Publish and run migrations (creates coolify_resources table)
  • Generate Dockerfile and docker configs
  • Configure TrustProxies middleware
  1. Log in to Coolify
  2. Go to Settings > API Tokens
  3. Create new token
  4. Copy the token

Add to .env:

Terminal window
COOLIFY_URL=https://your-coolify.com
COOLIFY_TOKEN=your-api-token

Optional:

Terminal window
COOLIFY_TEAM_ID= # If multiple teams
COOLIFY_TIMEOUT=60 # Request timeout seconds
COOLIFY_CACHE_TTL=30 # Cache duration seconds
Terminal window
php artisan coolify:status --all