Skip to content

An image for making php7 stack for Laravel, Symfony, ...

License

Notifications You must be signed in to change notification settings

oanhnn/docker-php-stack

Repository files navigation

oanhnn/docker-php-stack

Build Status

Repository of oanhnn/php-stack Docker image.

Version 1.0.0 is released and includes some BC changes. Please update your project or using tag 0.1.0. See detail in CHANGLOG.md

Features

  • Base from alpine:3.8 image
  • Install supervisor
  • Install php-fpm 7.2
  • Install nginx
  • Install curl

Requirement

  • Docker Engine & Docker Compose

Usage

Example for a Laravel application

  1. Copy all file in example-laravel folder to your project root folder

  2. Optional: Use test image for production

    • Replace line: image: oanhnn/php-stack:laravel by build: . in docker-compose.yml (line 62)

    • Comment mount volumes of app service in docker-compose.yml (line 82-83)

      #    volumes:
      #      - .:/var/www/html
  3. Build and run

    $ docker-compose build app
    $ docker-compose up -d

Contributing

All code contributions must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code.

Fork the project, create a feature branch, and send a pull request.

If you would like to help take a look at the list of issues.

License

This project is released under the MIT License.
Copyright © 2018 Oanh Nguyen
Please see License File for more information.