ZOYKU火線榜

render-examples/php-laravel-docker技術文件

render-examples/php-laravel-docker open-source repository on GitHub

目錄大綱 (TOC) (1 章節)▾
多語言回退提示:當前倉庫原作者暫未發布在地化文件,已為您無縫切換至官方英文原版(English),排版及程式碼實例完整保真。
極速安裝
git clone https://github.com/render-examples/php-laravel-docker.git

Laravel 11 with a Docker PHP Image

A demo repo for deploying a Laravel PHP application on Render using Docker. You can follow the getting started tutorial here.

Deployment

  1. Create a new PostgreSQL database on Render and copy the internal DB URL to use below.

  2. Fork this repo to your own GitHub account.

  3. Create a new Web Service on Render, and give Render's GitHub app permission to access your new repo.

  4. Select Docker for the environment, and add the following environment variable under the Advanced section:

    Key Value
    APP_KEY Copy the output of php artisan key:generate --show
    DATABASE_URL The internal database url for the database you created above.
    DB_CONNECTION pgsql

That's it! Your Laravel 11 app will be live on your Render URL as soon as the build finishes. You can test it out by registering and logging in.

文件鏡像歸檔自 GitHub 官方源路徑 · 造訪原專案 GitHub
最後同步快照:2026-11-07