benedictdudel / simple-docker-web-stack

PHP7 + nginx + MySQL via Docker Compose

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple Docker Web Stack

This is an unofficial, open-source and community-driven boilerplate for Web based projects that are running on Docker-Compose. It's an attempt of standardizing and making it easier to bootstrap web applications ready for development environments. The main services included are:

  • Nginx 1.13
  • MySQL 5.7
  • PHP 7.1

Please have a look at the Containers section for further included services.

Prerequisites

In order to start the containers you need to have installed the following software:

Usage

To start the containers cd into the directory containing this README and type the following command:

$ docker-compose up -d

To stop the containers type the following:

$ docker-compose down -v

Note: If you want to skip deleting the volumes remove the -v flag from the command.

Containers

nginx

nginx is an HTTP and reverse proxy server, a mail proxy server, and a generic TCP/UDP proxy server.

  • Port: 80

PHP-FPM

FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation with some additional features (mostly) useful for heavy-loaded sites.

  • Port: 9000

MySQL

MySQL is an open-source relational database management system (RDBMS).

  • Host: localhost
  • Port: 3306
  • Username: web
  • Password: pass
  • Database: web

Redis

Redis is an open source, in-memory data structure store, used as a database, cache and message broker.

  • Port: 6379

Memcached

Memcached is a free & open source, high-performance, distributed memory object caching system.

  • Port: 11211

phpMyAdmin

phpMyAdmin is a free software tool written in PHP, intended to handle the administration of MySQL over the Web

  • Port: 8080
  • Username: web
  • Password: pass

Mailhog

MailHog is an email testing tool for developers.

  • Port: 8025

About

PHP7 + nginx + MySQL via Docker Compose