Skip to main content

codified workflows for docker compose

Project description

Compose Flow

This utility is built on top of Docker Compose and Swarm Mode. It establishes workflow conventions that are easily shared between team members -- and butlers -- who need to manage and deploy services, including:

  • managing Stacks across multiple Swarms (e.g. separate dev and prod Swarms)
  • connecting to and working with service containers
  • building and publishing images
  • sharing service configuration between team members

Installation

pip install compose-flow

Compose-Flow configuration

Create the file ~/.compose/config.yml with the following sections.

  • Build
  • Remotes
  • Options (for local dev)

ex:

build:
  image_prefix: registry.osslabs.net
remotes:
  test:
    backend: rancher
    rancher:
      project: Ops
      cluster: prod
  dev:
    backend: rancher
  prod:
    backend: rancher
options:
  local:
    dirty_working_copy_okay: True    

With this in place you're ready to go onto your project setup.

A basic example

This is the most basic file to get started.

Place this at compose/compose-flow.yml in your project directory:

profiles:
  local:
    - docker-compose.yml

Alongside it, place the file compose/docker-compose.yml:

version: '3.7'
services:
  app:
    build: ..
    image: ${DOCKER_IMAGE}

For building, run: compose-flow build.

For publishing: compose-flow publish.

For deploying as configured above: compose-flow -e local deploy.

More information at docs/advanced.md

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

compose-flow-4.0.0.tar.gz (98.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

compose_flow-4.0.0-py3.9.egg (186.2 kB view details)

Uploaded Egg

File details

Details for the file compose-flow-4.0.0.tar.gz.

File metadata

  • Download URL: compose-flow-4.0.0.tar.gz
  • Upload date:
  • Size: 98.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for compose-flow-4.0.0.tar.gz
Algorithm Hash digest
SHA256 6a0c22a77fa2517affdf705cdd77dbfdd1a92e5a73521d89f303fd84f90d23ba
MD5 7c2fb80529cf101e61e1a48cb938fd25
BLAKE2b-256 fd026abd9c23105aad1b98dbc1d6a5c5ffd491921a4f864d3ee630ee218e6992

See more details on using hashes here.

File details

Details for the file compose_flow-4.0.0-py3.9.egg.

File metadata

  • Download URL: compose_flow-4.0.0-py3.9.egg
  • Upload date:
  • Size: 186.2 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for compose_flow-4.0.0-py3.9.egg
Algorithm Hash digest
SHA256 503c6ff2440c6f7a4d1163ec56c7de8202a494098f982b441729857ede4b08df
MD5 fbbc89e5cc201fc4b4577946ba54fa08
BLAKE2b-256 b2d0a07d93bcaccdbd02b12f0bb037010778063421ca633d2d345d48c714c0b7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page