Coder Social home page Coder Social logo

gd-abao / php-laravel-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from render-examples/php-laravel-docker

0.0 0.0 0.0 1.05 MB

Larvel 5.8 PHP Docker Deployment on Render

Home Page: https://render.com

License: MIT License

Shell 0.98% PHP 79.52% Vue 0.52% Blade 18.67% Dockerfile 0.32%

php-laravel-docker's Introduction

Laravel 5.8 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
    DATABASE_URL The internal connection string for the database you created above.
    DB_CONNECTION pgsql
    APP_KEY Copy the output of php artisan key:generate --show

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

php-laravel-docker's People

Contributors

anurag avatar aduong avatar dependabot[bot] avatar wendorf avatar connor11528 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.