{"id":24839221,"url":"https://github.com/nathanjms/laravel-coolify-example","last_synced_at":"2025-06-29T06:06:28.053Z","repository":{"id":257252970,"uuid":"857737015","full_name":"Nathanjms/laravel-coolify-example","owner":"Nathanjms","description":"Example laravel app to test with Coolify, and (optionally) Laravel Horizon","archived":false,"fork":false,"pushed_at":"2024-09-15T15:32:57.000Z","size":171,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T09:44:56.851Z","etag":null,"topics":["coolify","laravel","laravel-framework","laravel-horizon"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nathanjms.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-15T13:32:37.000Z","updated_at":"2025-04-03T00:33:46.000Z","dependencies_parsed_at":"2024-09-15T16:35:33.876Z","dependency_job_id":null,"html_url":"https://github.com/Nathanjms/laravel-coolify-example","commit_stats":null,"previous_names":["nathanjms/example-laravel-app","nathanjms/laravel-coolify-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Nathanjms/laravel-coolify-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nathanjms%2Flaravel-coolify-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nathanjms%2Flaravel-coolify-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nathanjms%2Flaravel-coolify-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nathanjms%2Flaravel-coolify-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nathanjms","download_url":"https://codeload.github.com/Nathanjms/laravel-coolify-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nathanjms%2Flaravel-coolify-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262545031,"owners_count":23326658,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coolify","laravel","laravel-framework","laravel-horizon"],"created_at":"2025-01-31T06:37:03.291Z","updated_at":"2025-06-29T06:06:28.025Z","avatar_url":"https://github.com/Nathanjms.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Coolify Example with Horizon\n\nThe magic comes from the `nixpacks.toml` file, which was based on the one provided by [@marcfowler](https://github.com/marcfowler) at https://github.com/coollabsio/coolify/discussions/2156.\n\nNote: If you do not need horizon, then you may be able to further simplify this by using `nixpacks.no-horizon.toml` (renaming to `nixpacks.toml`) instead.\n\nI've also added opcache, but to be honest am unsure if it's working (or needed here).\n\n## Steps\n\n### Step 1\n\nInclude the `nixpacks.toml` (or `nixpacks.no-horizon.toml` renamed to `nixpacks.toml`) in your root directory, then one of the following:\n\n### Step 2\n\nThe `nixpacks` has a `[postbuild]` step to handle the cache:clear and the artisan:migrate commands, but to get supervisor to run (so we get horizon), you can either override the default `[start]`'s `cmd` with the one provided by Nixpacks and add the command to start supervisor:\n```\n[start]\ncmd = 'node /assets/scripts/prestart.mjs /assets/nginx.template.conf /nginx.conf \u0026\u0026 (supervisord -c /etc/supervisord.conf \u0026 php-fpm -y /assets/php-fpm.conf \u0026 nginx -c /nginx.conf)'\n```\n\nHowever, if Nixpacks change this command in the future (unsure how likely this is), this will not update.\n\nInstead, we can do the following to run supervisor post-build:\n\nAdd the following to the post-deployment commands section of the project on Coolify dashboard:\n```\nsupervisord -c /etc/supervisord.conf\n```\n\n![Screenshot](https://raw.githubusercontent.com/Nathanjms/laravel-coolify-example/main/coolify-laravel.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathanjms%2Flaravel-coolify-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnathanjms%2Flaravel-coolify-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathanjms%2Flaravel-coolify-example/lists"}