Coder Social home page Coder Social logo

capistrano-docker's Introduction

Capistrano - Docker Appliance Deploy

This project aims to make it simple to deploy multiple apps inside Docker containers to an overall Docker Host.

Opinionated File Structure

To make the process as simple as possible this project specifies an opinianated file structure, it will be much easier to start with a clean slate rather than trying to backport this to legacy file setup.

Apps are namespaced by an account and an application, in a similar concept to Github account/repo structure.

Persistent Data Support

There is support for persistent storage via configuration of volumes. Multiple volumes are supported for each project.

Installation & Required Configuration

To get started you will need the following setup.

1. A local git repo that stores your project file
2. The root of the project needs a Dockerfile that handles the container build
3. A remote server with Docker installed and a preferably empty filesystem for the specified user.
4. A local Capfile that handles the configuration for the deploy.

Here's an example of the minimum requirements for your local Capfile.

require 'rubygems'
require 'bundler/setup'
require 'capistrano/setup'
require 'capistrano/docker'

set :namespace,         "yournamespace"
set :application,       "yourapp"
set :port,              "59999"
set :stage,             "production"

task :production do
    set :branch,        "master"
    server 'docker.yourserver.com', user: 'docker', roles: %w{host}
end

capistrano-docker's People

Contributors

rossriley avatar

Watchers

 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.