WARNING: this project is deprecated. Now I am use dcape for this purposes.
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:
- Dockerfiles - files for docker automated builds
- fidm - configs for container running via
fidm start
- examples
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
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
See Dockerfiles/*/ for details
The MIT License (MIT), see LICENSE.
Copyright (c) 2014 - 2017 Alexey Kovrizhkin [email protected]