GithubHelp home page GithubHelp logo

alvin1234567 / docker-webserver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from neoighodaro/docker-webserver

0.0 1.0 0.0 10 KB

Webserver (Nginx + PHP 7) running inside a Docker container.

License: MIT License

Shell 100.00%

docker-webserver's Introduction

Web Server

Nginx & PHP 7 web server.

Laravel Application - Quick Run

Using the Laravel installer you can get up and running with a Laravel application inside Docker in minutes.

  • Create a new Laravel application $ laravel new testapp
  • Change to the applications directory $ cd testapp
  • Start the container and attach the application. $ docker run -d -p 4488:80 --name=testapp -v $PWD:/var/www webserver
  • Visit the Docker container URL like http://0.0.0.0:4488. Profit!

Environment Variables

Here are some configurable environment values.

  • WEBROOT โ€“ Path to the web root. Default: /var/www
  • PRODUCTION โ€“ Is this a production environment. Default: 0
  • PHP_MEMORY_LIMIT - PHP memory limit in megabytes. Example: 100
  • PHP_POST_MAX_SIZE - PHP POST maximum size in megabytes. Example: 50
  • PHP_UPLOAD_MAX_FILESIZE - PHP upload maximum file size in megabytes. Example: 100
  • COMPOSER_DIRECTORY - Path to where your composer.json file lives. Example: /var/www
  • LARAVEL - Is this a Laravel application. If you set this to 1 then set your composer directory too. Default 0
  • RUN_MIGRATIONS - Run Laravel migrations. (Will only work IF LARAVEL = 1). Default: 0

docker-webserver's People

Contributors

jonathanitakpe avatar neoighodaro avatar

Watchers

 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.