Skip to content

The-GitDeploy/git-docker-manager

Repository files navigation

git-docker-manager

Use a Github repository to manage your docker containers

Usage

1. Set up container

Public repos:

docker run -e WATCHED_REPO="F1nnM/git-server-management" -p 5000:5000 -v /var/run/docker.sock:/var/run/docker.sock git-docker-manager

Private repos:

docker run -e WATCHED_REPO="F1nnM/git-server-management" -e PAT="<your personal auth token>" -p 5000:5000 -v /var/run/docker.sock:/var/run/docker.sock git-docker-manager

2. Set up repo

Settings > Webhooks. Add a webhook for the push event that sends a request to the container.

3. Commit files

The repo should look like this:

┬─ compose
│  ├─ <project name>
│  │  ├─ docker-compose.yml
│  │  └─ <.....>
│  └─ <project name 2>
│     ├─ docker-compose.yml
│     └─ <.....>
└─ <.....>

Aside the compose folder the repo can contain any other files you want, just like this repo contains a compose folder with a test project

About

Use a Github repository to manage your docker containers and nginx configuration

Resources

License

Stars

Watchers

Forks

Packages