Symfony
Symfony is the leading PHP framework to create websites and web applications. Built on top of the Symfony Components.
Requirements
- Set
Build Pack
tonixpacks
- Set
APP_ENV
- Set
APP_SECRET
- Set
NIXPACKS_PHP_FALLBACK_PATH
to/index.php
- Set
NIXPACKS_PHP_ROOT_DIR
to/app/public
- Set
Ports Exposes
to80
Database migrations
If you use Doctrine, you can add the following Post-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_PROXIES
with the IP of your server - Add the following Symfony configuration :