Skip to content
ZareixPublic

About

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Dockstack

Self-hosted Docker Compose stack management UI. Browse, edit, start, stop, restart, and redeploy your stacks from a web interface — no big database, no complex config.

Features

  • Docker Compose first — stacks are plain directories with a compose.yaml (and .env), managed on disk
  • Fast & self-contained — a single Go binary that embeds the SPA frontend and serves the API
  • Stateless and local-first — SQLite used only for auth; stack state lives in Docker itself and on your filesystem
  • Built-in editor — edit compose files directly in the UI with YAML validation
  • Webhook redeploy — POST /api/stacks/{name}/redeploy pulls and recreates one stack's running services; POST /api/stacks/redeploy recreates all running services (via API key)
  • Image update detection — per-stack badge when a newer image digest is available, with a streamed one-click update (pull + recreate)
  • Drift detection — per-stack badge when the Compose file or .env no longer matches the running containers, with a one-click redeploy
  • Auth — email/username + password, passkeys (WebAuthn), OIDC / OAuth login, API keys
  • Maintenance — expired WebAuthn challenges and password reset tokens are cleaned up weekly (schedule via AUTH_CLEANUP_CRON); optional automatic docker system prune via DOCKER_SYSTEM_PRUNE_CRON
  • Terminal & live logs — WebSocket-based container terminal and stack log streaming
  • Non-intrusive — talks to the Docker socket via the official Docker SDK, shells out to docker compose; fully compatible with manual CLI usage, no lock-in

Wiki

Check out the wiki for setup instructions, environment variables, and more: https://zareix.github.io/dockstack/en

Architecture

  • Backend — Go (using huma) in cmd/dockstack + internal/.
  • Frontend — web/ is a TanStack Router + React SPA (Vite build) that talks to the Go API (hooks generated by Orval). Built output (web/dist) is embedded into the Go binary via //go:embed.
  • Docs — wiki/ is a separate Fumadocs (Next.js) site, published to https://zareix.github.io/dockstack. Its openapi.yaml is generated thanks to Huma.

Development

Prerequisites: Go 1.26+, Bun, just, and a Docker daemon (the docker socket path is controlled by DOCKER_HOST, default unix:///var/run/docker.sock).

# Run backend (port 3000) and frontend dev server (port 5173, proxies /api + WS to :3000) together
just dev

Build everything (SPA → embed → binary):

just build        # produces ./bin/dockstack

Run tests:

go test ./...

About

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages