/compote

docker-compose based stack ops

Primary LanguageRubyGNU General Public License v2.0GPL-2.0

Compote

Docker-based tool to run services.

The aim of this is not to apply the best standards or be super performant but rather a simple solution for git-push deployment of containers on own servers.

Each project is represented as a "compote jar" - a dedicated directory that holds configuration and git source code, optionally cached libraries, data to be persisted, etc.

You define your own scripts inside the project, which do all the necessary work before a release docker image can be built and the container run. These scripts are run as the deployer user.

Requirements

system

GNU/Linux, bash. Developed on Ubuntu server 22.04.

sudo

This tool expects that you access the server as a non-root user with password-less sudo provided.

ruby

System-wide installation with the following gems required. Developed with 3.0 version.

sudo apt install ruby
sudo gem install colorize tty-prompt dotenv

Install

ssh to the server and download compote:

sudo git clone https://github.com/doooby/compote.git /opt/compote

As the deployer user:

/opt/compote/bin/user_install.rb
# log off and on again
# now you can run compote using alias
compote ls