All Projects → leighmcculloch → Vagrant Docker Compose

leighmcculloch / Vagrant Docker Compose

Licence: isc
A Vagrant provisioner for docker compose.

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Vagrant Docker Compose

Infrastructure As Code Tutorial
Infrastructure As Code Tutorial. Covers Packer, Terraform, Ansible, Vagrant, Docker, Docker Compose, Kubernetes
Stars: ✭ 1,954 (+263.87%)
Mutual labels:  docker-compose, vagrant
Ansible Windows Docker Springboot
Example project showing how to provision, deploy, run & orchestrate Spring Boot apps with Docker Windows Containers on Docker Windows native using Packer, Powershell, Vagrant & Ansible
Stars: ✭ 58 (-89.2%)
Mutual labels:  docker-compose, vagrant
Jenkins Bootstrap Shared
Jenkins as immutable infrastructure made easy. A repository of shared scripts meant to be used as a git submodule. Packing Jenkins, plugins, and scripts into immutable packages and images.
Stars: ✭ 270 (-49.72%)
Mutual labels:  docker-compose, vagrant
Rubel
Rubel is a cms built with Laravel and React.
Stars: ✭ 70 (-86.96%)
Mutual labels:  docker-compose, vagrant
Arcemu
World Of Warcraft 3.3.5a server package
Stars: ✭ 281 (-47.67%)
Mutual labels:  docker-compose, vagrant
Vagrant Php Dev Box
PHP 7 vagrant development box with nginx, php-fpm, MySQL, Symfony, Laravel, ... on Ubuntu 16.04
Stars: ✭ 473 (-11.92%)
Mutual labels:  vagrant
Vvv
An open source Vagrant configuration for developing with WordPress
Stars: ✭ 4,567 (+750.47%)
Mutual labels:  vagrant
Vue Ls
💥 Vue plugin for work with local storage, session storage and memory storage from Vue context
Stars: ✭ 468 (-12.85%)
Mutual labels:  docker-compose
Wordpress Nginx Docker Compose
Run WordPress with nginx using Docker Compose.
Stars: ✭ 460 (-14.34%)
Mutual labels:  docker-compose
Umbrel
A personal Bitcoin and Lightning node designed for everyone
Stars: ✭ 508 (-5.4%)
Mutual labels:  docker-compose
Wordpress Nginx Docker
Wordpress (php7.3-fpm) using Nginx and MariaDB - deployed with docker-compose - Let's Encrypt enabled
Stars: ✭ 498 (-7.26%)
Mutual labels:  docker-compose
Ambientum
Docker native solution for running Laravel projects. From Development to Production
Stars: ✭ 487 (-9.31%)
Mutual labels:  docker-compose
Ansible For Devops
Ansible for DevOps examples.
Stars: ✭ 5,265 (+880.45%)
Mutual labels:  vagrant
Phpmyfaq
phpMyFAQ - Open Source FAQ web application for PHP and MySQL, PostgreSQL and other databases
Stars: ✭ 494 (-8.01%)
Mutual labels:  docker-compose
Packer Templates
Packer templates for Vagrant base boxes
Stars: ✭ 471 (-12.29%)
Mutual labels:  vagrant
Dotci
DotCi Jenkins github integration, .ci.yml http://groupon.github.io/DotCi
Stars: ✭ 505 (-5.96%)
Mutual labels:  docker-compose
Micro Auth
A microservice that makes adding authentication with Google and Github to your application easy.
Stars: ✭ 466 (-13.22%)
Mutual labels:  docker-compose
Wocker
Create your WordPress development environment in 3 SECONDS!
Stars: ✭ 482 (-10.24%)
Mutual labels:  vagrant
Docker2saas
An open source tool that lets you create a SaaS website from docker images in 10 minutes.
Stars: ✭ 498 (-7.26%)
Mutual labels:  docker-compose
Madclones
A collection of frameworks that I love with a strong focus on clean code, testing, software architecture/design and devops.
Stars: ✭ 480 (-10.61%)
Mutual labels:  docker-compose

Vagrant Provisioner: Docker Compose

CircleCI

A Vagrant provisioner for Docker Compose. Installs Docker Compose and can also bring up the containers defined by a docker-compose.yml.

Install

vagrant plugin install vagrant-docker-compose

Usage

To install docker and docker-compose

Vagrant.configure("2") do |config|
  config.vm.box = "ubuntu/bionic64"

  config.vm.provision :docker
  config.vm.provision :docker_compose
end

To install and run docker-compose on vagrant up

Vagrant.configure("2") do |config|
  config.vm.box = "ubuntu/bionic64"

  config.vm.provision :docker
  config.vm.provision :docker_compose, yml: "/vagrant/docker-compose.yml", run: "always"
end

Equivalent to running:

docker-compose -f [yml] up -d

To install and run docker-compose, with multiple files, on vagrant up

Vagrant.configure("2") do |config|
  config.vm.box = "ubuntu/bionic64"

  config.vm.provision :docker
  config.vm.provision :docker_compose,
    yml: [
      "/vagrant/docker-compose-base.yml",
      "/vagrant/docker-compose.yml",
      ...
    ],
    run: "always"
end

Equivalent to running:

docker-compose -f [yml-0] -f [yml-1] ... up -d

To install, rebuild and run docker-compose on vagrant up

Vagrant.configure("2") do |config|
  config.vm.box = "ubuntu/bionic64"

  config.vm.provision :docker
  config.vm.provision :docker_compose, yml: "/vagrant/docker-compose.yml", rebuild: true, run: "always"
end

Equivalent to running:

docker-compose -f [yml] rm --force
docker-compose -f [yml] build
docker-compose -f [yml] up -d

To install, rebuild and run docker-compose with options on vagrant up

Vagrant.configure("2") do |config|
  config.vm.box = "ubuntu/bionic64"

  config.vm.provision :docker
  config.vm.provision :docker_compose, yml: "/vagrant/docker-compose.yml", rebuild: true,
    options: "--x-networking", command_options: { rm: "", up: "-d --timeout 20"}, run: "always"
end

Equivalent to running:

docker-compose --x-networking -f [yml] rm
docker-compose --x-networking -f [yml] build
docker-compose --x-networking -f [yml] up -d --timeout 20

Other configs

  • yml – one or more Compose files (YAML), may be a String for a single file, or Array for multiple.
  • compose_version – defaults to 1.24.1.
  • project_name – compose will default to naming the project vagrant.
  • env – a Hash of environment variables to value that are passed to the docker-compose commands, defaults to an empty Hash.
  • executable_symlink_path – the location the executable will be symlinked to, defaults to /usr/local/bin/docker-compose.
  • executable_install_path – the location the executable will be stored, defaults to <executable_symlink_path>-<compose_version>, i.e. /usr/local/bin/docker-compose-1.5.0.
  • options - a String that's included as the first arguments when calling the docker-compose executable, you can use this to pass arbitrary options/flags to docker-compose, default to nil.
  • command_options - a Hash of docker-compose commands to options, you can use this to pass arbitrary options/flags to the docker-compose commands, defaults to: { rm: "--force", up: "-d" }.

Example

See example in the repository for a full working example.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].