GithubHelp home page GithubHelp logo

fitprimelabs / docker-php-nginx Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fontebasso/docker-php-nginx

0.0 0.0 0.0 64 KB

This project is a image docker for run PHP with NGINX in production.

License: MIT License

Shell 21.67% PHP 1.94% Dockerfile 76.39%

docker-php-nginx's Introduction

fitprimelabs/php-nginx

Docker Pulls GitHub Repo GitHub License

This project is container image docker for run PHP with NGINX.

This image is ready to run in production, suggestions for improvements and corrections are very welcome, see how to contribute.

However, if you identify a security breach, please report it as soon as possible under guidelines outlined in our security policy.

Getting Started

Use this docker image as a base to run your project, tested on Laravel 8 projects, map your source code to the /app directory and build your image as suggested below:

Step-to-step

1. Your Dockerfile

FROM fitprimelabs/php-nginx:[version]
COPY /src /app
RUN chown -R 82:82 /app

Important note: we run the command chown -R 82:82 /app to change the user and group owning the files to www-data, this avoids permissions issues when running your code.

2. Build a image

docker build -t your-app:latest .

3. Run application

docker run -p 8080:80 -t your-app:latest

After run, open in your browser http://localhost:8080 and enjoy!

Prerequisities

To run this image, only the Docker Engine is needed.

Volumes

  • /app - base directory for your application
  • /app/public - directory exposed to the world

Built With

  • PHP 8.1
  • Nginx
  • Imagemagick

See Dockerfile for details of the extensions, libs and configurations.

Find Us

Authors

Original author

See also the list of contributors who participated in this project.

License

The MIT License, see the LICENSE file for details.

docker-php-nginx's People

Contributors

fontebasso avatar procionegobbo 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.