Skip to content

domezy/nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nginx PHP-FPM

Sandbox for development - container running Nginx + PHP-FPM

Docker Pulls Build Status

Supported tags

Os PHP Image Layers
Debian 7 (Wheeze) 5.6 dockerphp/nginx:5.6-wheezy
Debian 8 (Jessie) 5.6 dockerphp/nginx:5.6-jessie
Debian 8 (Jessie) 7.0 dockerphp/nginx:7.0-jessie
Debian 9 (Stretch) 7.0 dockerphp/nginx:7.0-stretch
Debian 8 (Jessie) 7.1 dockerphp/nginx:7.1-jessie
Debian 9 (Stretch) 7.1 dockerphp/nginx:7.1-stretch

Based on Official PHP images Debian and all versions come with:

Required

The sandbox uses Docker, a container tool for setting up a rapid development environment. The project has only two prerequisites:

Usage

Simple usage

Acces to the container console easily:

docker run --rm -ti -v /your/project:/app dockerphp/nginx:7.1-jessie sh

Configuration of your Docker compose

Basic configuration with Symfony

Create a file called docker-compose.yml in your project directory and paste the following:

version: "2"

services:
    app:
        image: dockerphp/nginx:7.1-jessie
        depends_on:
            - db
            - memcached
        volumes:
            - .:/app
            - /app/var/
        ports:
            - "8080:443"

    db:
        image: mariadb:10.3
        environment:
            MYSQL_ROOT_PASSWORD: root
        ports:
            - "3301:3306"

    memcached:
        image: memcached:latest
        ports:
          - "11221:11211"
        mem_limit: 1g

    pma:
        image: phpmyadmin/phpmyadmin
        depends_on:
            - db
        environment:
            PMA_HOST: db
            PMA_USER: root
            PMA_PASSWORD: root
        ports:
            - "127.0.0.1:8081:80"

Build and run your app with Compose:

$ docker-compose up

Enter http://localhost:8080/ in a browser to see the application running.


License

This project is released under the MIT License, you agree to license your code under the MIT license

About

Container running Nginx + PHP-FPM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published