Coder Social home page Coder Social logo

syntox / docker-phpdev Goto Github PK

View Code? Open in Web Editor NEW

This project forked from majuansari/docker-phpdev

0.0 2.0 0.0 122 KB

Easy to use php docker development environment setup with vhost/multi version support

License: MIT License

Shell 94.90% PHP 0.15% Nginx 4.95%

docker-phpdev's Introduction

docker-phpdev helps you to setup a php development environment using Docker

Features

- Easy setup of lemp & lamp environments
- Easy vhost setup
- Try out multiple versions of php & mysql
- Useful services and extensions added
- Low size containers
- Only ubuntu 16.04 or alpine are used as base images

Containers

- mysql[5.5, 5.6 & 5.7]
- apache2
- nginx
- php [5.6, 7.0 & 7.1]
- phpmyadmin
- sonarqube
- redis
- memcached
- mailcatcher
# Setup LAMP environment
git clone https://github.com/majuansari/docker-phpdev.git
cd docker-phpdev

//Start lamp environment using short key
docker-compose up -d lamp

//Start lamp environment by specifying services
docker-compose up -d mysql apache2 php-fpm

# Setup LEMP environment
git clone https://github.com/majuansari/docker-phpdev.git
cd docker-phpdev
//Start lamp environment using short key
docker-compose up -d lemp

//Start lamp environment by specifying services
docker-compose up -d mysql nginx php-fpm
# Add vhosts

For adding vhosts create conf files in docker/apache2/conf for apache2 and docker/nginx/sites for nginx

# Configure services versions and passwords

You can easily change service versions or default passwords by editing .env file

Container Command
php-fpm docker-compose up -d php-fpm
apache2 docker-compose up -d apache2
nginx docker-compose up -d nginx
mysql docker-compose up -d mysql
sonarqube docker-compose up -d sonarqube
phpmyadmin docker-compose up -d phpmyadmin
redi docker-compose up -d redis
mailcatcher docker-compose up -d mailcatcher
memcached docker-compose up -d memcached
lamp docker-compose up -d lamp
lemp docker-compose up -d lemp
Commands Description
docker-compose build Build the entire stack
docker-compose build {container} Build just the specified container
docker-compose up -d Start the entire stack
docker-compose up {container} Start just the specified container
docker-compose stop Stop all the containers related to the docker-compose

alt tag

References

  1. Docker for php developers
  2. PHP Web development with docker
  3. webdevops docker
  4. laradock
  5. php-dockerized

docker-phpdev's People

Contributors

majuansari avatar

Watchers

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