/consup

DEPRECATED. See README.md

Primary LanguageShellMIT LicenseMIT

WARNING: this project is deprecated. Now I am use dcape for this purposes.

consup

consup - shared containers orchestration

Read this in other languages: English, Russian


This repository aimed to create and use Docker containers with fidm tool and contains:

Usage example

Lets say we need 2 web application containers both uses postgresql.

Web application uses consup_nginx as base container and has the following config (fidm.yml)

# container name
image: consup_nginx

# required images
requires:
# frontend nginx routes requests to online containers
- consup/nginx mode=common
# single postgresql instance for every which wants "mode=common"
- consup/postgres mode=common

# link master service registration database
links:
- consup/consul    # consul.yml

Running fidm start in application dir will start its container and all not started dependencies.

All containers with same row consup/postgres mode=common in config will use the same postgresql database cluster

Dependensies

Install

For dealing with prepared containers:

wget -qO- https://raw.githubusercontent.com/LeKovr/consup/master/install.sh | sh

For Dockerfile development:

git clone https://github.com/LeKovr/consup.git

Applications supported

See Dockerfiles/*/ for details

Container structure

Container structure

License

The MIT License (MIT), see LICENSE.

Copyright (c) 2014 - 2017 Alexey Kovrizhkin lekovr@gmail.com