Thanks to visit codestin.com
Credit goes to github.com

Skip to content

alkoclick/docker-compose-gitops

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker Compose GitOps

Basic implementation of GitOps paradigm using docker-compose. This program continuously fetches a git repository and updates docker-compose services.

Usage

$ git clone <Git URL with docker-compose configuration>
$ gitops.sh

With docker-compose

# /path/to/subfodler/docker-compose.yml

services:
  ...
  gitops:
    image: ghcr.io/alkoclick/docker-compose-gitops:v1.1.0
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      # You have to match the paths inside and outside the container, otherwise docker compose will detect changes in your volume mounts because it uses absolute paths!
      - ${PWD}:${PWD}
    working_dir: ${PWD} # You can add any subpaths you may here as needed

Original project

Credits to zeeke over at: https://github.com/zeeke/docker-compose-gitops

About

Simple gitops script supporting docker compose

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Shell 78.8%
  • Dockerfile 21.2%