Skip to content

luisgagocasas/development-vagrant-ansible-docker-compose

Repository files navigation

Development environment with vagrant + ansible + docker

Use this repository in development environment.

Vagrant + docker + docker-compose

The purpose of this repository is to establish a development environment incorporating with some docker.

The idea is to emulate a production environment with docker and docker-compose of an application.

Requirements

Technologies

  • Ansible
  • Docker
  • Docker-compose

Command frequent

  • vagrant validate
  • vagrant up
  • vagrant status
  • vagrant suspend NAME
  • vagrant resume NAME

Command optional

  • vagrant destroy -f
  • vagrant box list
  • vagrant box remove NAME
  • vagrant ssh master
  • vagrant ssh -c "ls -ls" 2>/dev/null

Variable important (Vagrantfile)

  • VM_IP (IP base)

Folder

  • /docker-basic/ - docker-compose with nginx
  • /docker-node/ - docker-compose with node
  • /nginx-static/ - nginx site

Document

By

About

Development environment with vagrant + ansible + docker

Resources

Stars

Watchers

Forks