adze

command module
v0.4.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: 29 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. Updates are queued and processed one at a time so nothing steps on anything else.

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

Configuration

Flag Env var Default Description
-addr ADDR :8080 Address to listen on
-secret SECRET (required) Shared secret(s) for webhook signatures, comma-separated
-danger-endpoints DANGER_ENDPOINTS 0 Number of unauthenticated webhook endpoints to generate

If your registry requires authentication, mount ~/.docker or set DOCKER_CONFIG to point to a directory containing your Docker config.

Unauthenticated endpoints

If you have services that can't send signed webhooks, you can generate unauthenticated endpoints with -danger-endpoints <n> (or DANGER_ENDPOINTS). This creates n endpoints at /webhook/<guid> that accept requests without signature validation. The GUIDs are derived from your first configured secret, so they remain stable across restarts.

environment:
  - SECRET=your-webhook-secret
  - DANGER_ENDPOINTS=2

The generated paths are logged at startup:

info: danger endpoint path=/webhook/a1b2c3d4-e5f6-7890-abcd-ef1234567890
info: danger endpoint path=/webhook/f9e8d7c6-b5a4-3210-fedc-ba0987654321

These endpoints are effectively passwords — treat the paths as secret.

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

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

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