Skip to content

Easy and fast setup of a dev environment with Apache, PHP & MySQL

Notifications You must be signed in to change notification settings

kombasltd/dockerdev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

komBAS Docker Web Development Environment

Easy and fast setup of a dev environment with Apache, PHP & MySQL

This was done because I always struggled with setting up a usable development environment for my websites fast.

What's inside

This environment consists of two separate containers:

  • Webserver (Apache with PHP)
    • Apache: alpine
    • Ports: HTTP -> 80 / HTTPS -> 443
    • PHP: 7.1
  • MySQL Server (shipped with a fresh test database)
    • MySQL: 5.7
    • Port: standard 3306
    • Test Database Name: test
    • ROOT: root
    • ROOT-Password: dev
    • User: dev
    • User-Password: dev

Installation and Usage

You need to install Docker first:

https://www.docker.com/community-edition

For a new dev environment just make a copy of this repository and proceed.

  1. Start Docker
  2. Run "up.bat" to start the dev environment
  3. Open your browser and navigate to "localhost" for further instructions
  4. Run "down.bat" to stop the dev environment

Your web and database data are stored persistent in the "www" and "dbdata" directory.

Website: https://kombas.de

About

Easy and fast setup of a dev environment with Apache, PHP & MySQL

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published