sorccu / vagrant-docker-example

An example project on how to use Vagrant + Docker to build development environments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Development environment using Vagrant and Docker

This is an example project on how to use Vagrant and Docker to build development environments. It consists of a simple web application and a Vagrantfile that makes use of several Dockerfiles to create the development environment. The example consists of two parts: a simpler and a more complex part.

Single container development environment

The simplest part, consists of a single container that makes use of the internal built-in PHP web server to run the application. To run this single container you have to execute from the directory root

$ vagrant up php

Multi container development environment

Aditionally, an example of a development environment consisting of multiple containers is provided. To run it you have to execute this command in the application root directory

$ vagrant up --no-parallel

After having bootstrapped the development environment either as a single or as multiple container mode, you can check the result by opening a browser pointing to http://192.168.33.10

open http://192.168.33.10

About

An example project on how to use Vagrant + Docker to build development environments

License:MIT License


Languages

Language:PHP 69.4%Language:HTML 25.4%Language:Shell 5.2%