adze

command module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2026 License: MIT Imports: 28 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Adze

A small webhook receiver that keeps your Docker Compose services up to date.

When a container image is pushed to your registry, Adze catches the webhook, finds any Compose projects running that image, and pulls + redeploys them. No cron, no polling.

Works with Forgejo and Gitea container registry webhooks out of the box, or anything that can send a JSON body with an image field.

Running it

You need Docker with the Compose plugin available on the host. Adze needs access to the Docker socket and the filesystem containing your Compose files (it reads them directly, not through the Docker API).

Docker
# compose.yml
services:
  adze:
    image: ghcr.io/greboid/adze:latest
    environment:
      - ADDR=:8080
      - SECRET=your-webhook-secret
      - DOCKER_CONFIG=/docker
    ports:
      - "8080:8080"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /path/to/your/compose/files:/path/to/your/compose/files:ro
      - /home/youruser/.docker:/docker:ro
docker compose up -d
Binary
go build -o adze .
./adze -addr :8080 -secret your-webhook-secret

Both flags can also be set via environment variables (ADDR, SECRET). You can pass multiple secrets separated by commas. If your registry requires authentication, mount ~/.docker (shown above) or set DOCKER_CONFIG to point to a directory containing your Docker config.

Then point your registry webhook at http://<host>:8080/webhook.

How it works

  1. A webhook arrives with an image name
  2. Adze lists running containers to find Compose projects using that image
  3. Each project gets a docker compose up with pull policy set to always
  4. Old containers are cleaned up

Updates are queued and processed one at a time so nothing steps on anything else.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL