Skip to content

sdphp/docker-php7_1-nginx-mysql5_7

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic Docker Web Dev Box

Basic docker box for little projects & testing of PHP 7.1.

Requirements

  • Default site for Nginx maps to the code directory where PHP 7.1 sample code exist.
  • This repo assumes you store your projects in ~/Projects.
  • Docker installed
  • Docker Compose installed

Services

  • PHP-FPM 7.1
  • MySQL 5.7
  • NGINX 1.10

Accessing services

We're exposing NGINX and MySQL their ports, so you can just go to http://127.0.0.1/ or http://localhost/ from your browser and connect to MySQL from your client (eg: Sequel Pro) using 127.0.0.1:3306 or localhost:3306.

To access MySQL from within your web applications you'll need to use mysql as host.

Default MySQL credentials:

  • Username: docker
  • Password: secret
  • Database: docker

Installation / run

docker-compose up

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages