Requirements
- Set
Build Packtonixpacks - Set
APP_ENV - Set
APP_SECRET - Set
NIXPACKS_PHP_FALLBACK_PATHto/index.php - Set
NIXPACKS_PHP_ROOT_DIRto/app/public - Set
Ports Exposesto80
Database migrations
If you use Doctrine, you can add the followingPost-deployment script :
php bin/console doctrine:migrations:migrate --all-or-nothing --no-interaction
Other components
If your application needs a database or Redis, you can simply create them beforehand in the Coolify dashboard. You will receive the connection strings which you can use in your application and set them as environment variables:Trusted proxy
You might need to configure the trusted proxy :- Set the environment variable
TRUSTED_PROXIESwith the IP of your server - Add the following Symfony configuration :