{"id":51443927,"url":"https://github.com/john710/kompoz","last_synced_at":"2026-07-05T14:01:43.638Z","repository":{"id":366074926,"uuid":"1249037255","full_name":"John710/kompoz","owner":"John710","description":"Self-hosted web editor \u0026 visualizer for Docker Compose stacks — with dependency maps, built-in linter, and LAN device scanner.","archived":false,"fork":false,"pushed_at":"2026-06-20T05:23:16.000Z","size":388,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-20T07:14:02.229Z","etag":null,"topics":["codemirror","compose","d3js","devops","docker","docker-compose","editor","express","homelab","i18n","infrastructure-as-code","linter","network-scanner","nodejs","postgresql","self-hosted","visualization","yaml"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/John710.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-25T09:35:46.000Z","updated_at":"2026-06-20T05:41:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/John710/kompoz","commit_stats":null,"previous_names":["john710/kompoz"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/John710/kompoz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/John710%2Fkompoz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/John710%2Fkompoz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/John710%2Fkompoz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/John710%2Fkompoz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/John710","download_url":"https://codeload.github.com/John710/kompoz/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/John710%2Fkompoz/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35156494,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-05T02:00:06.290Z","response_time":100,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codemirror","compose","d3js","devops","docker","docker-compose","editor","express","homelab","i18n","infrastructure-as-code","linter","network-scanner","nodejs","postgresql","self-hosted","visualization","yaml"],"created_at":"2026-07-05T14:01:38.562Z","updated_at":"2026-07-05T14:01:43.603Z","avatar_url":"https://github.com/John710.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kompoz\n\n\u003e Self-hosted web editor \u0026 visualizer for your Docker Compose stacks.\n\n**Kompoz** helps you edit, organize, and understand Docker Compose projects from a single web interface. Multi-project support, live YAML linting, interactive dependency maps, and a built-in network scanner — all in one lightweight container.\n\n---\n\n## What you get\n\n| Feature | What it does |\n|---------|-------------|\n| **📁 Project Manager** | Work with multiple compose stacks from one UI. Projects are auto-detected from mounted folders. |\n| **✏️ YAML Editor** | Syntax highlighting, error linting, and tabbed editing for `.yml`, `.env`, and secrets — powered by CodeMirror. |\n| **🗺️ Container Map** | Interactive graph of services, networks, and volumes. Zoom, pan, filter by type, and click any node to jump straight to its file. |\n| **🌐 Network Scanner** | Scan local subnets, discover devices by open ports and TCP fingerprints, and build a network topology map. |\n| **🛡️ Optional Auth** | Simple login with HMAC-signed cookies, or connect a PostgreSQL database for user management. |\n| **🌙 Dark/Light Theme** | Switch instantly with zero reload. |\n| **🌍 Multi-language** | English and Russian built in. Add your own translation file to `locales/` and open a PR.\n\n---\n\n## Quick Start\n\nThe fastest way is Docker Compose:\n\n```bash\ngit clone https://github.com/John710/kompoz.git\ncd kompoz\n```\n\nEdit `docker-compose.yml` to point `volumes` at your actual compose folders, then:\n\n```bash\ndocker compose up -d\n```\n\nOpen `http://localhost:3710`.\n\n### Without Docker\n\n```bash\nnpm install\nnpm start\n```\n\n---\n\n## How it works\n\n### Mounting projects\n\nPoint `COMPOSE_MOUNTS` to one or more folders on your host:\n\n```\nCOMPOSE_MOUNTS=/mnt/docker,/mnt/server\n```\n\nKompoz detects projects automatically:\n- **Direct mode** — a folder containing `.yml` or `.env` files is treated as one project.\n- **Multi mode** — a plain folder becomes a catalog, and every subfolder inside it is a separate project.\n\nYou can override project names with a pipe:\n\n```\nCOMPOSE_MOUNTS=/mnt/docker,/mnt/server,/mnt/trifi|Trifi\n```\n\n### Pages\n\n| Page | Path | Use for |\n|------|------|---------|\n| **Home** | `/` | Browse, create, and switch projects |\n| **Editor** | `/editor.html` | Edit compose files, secrets, and environment variables |\n| **Container Map** | `/map.html` | Visualize service dependencies and click any card to open its source file |\n| **Network Map** | `/homelab.html` | Scan your LAN, find devices, draw links between them |\n\n---\n\n## Configuration\n\nSet these via environment variables:\n\n| Variable | What it does | Example |\n|----------|-------------|---------|\n| `COMPOSE_MOUNTS` | Where your compose projects live (comma-separated) | `/mnt/docker` |\n| `DATABASE_URL` | Optional PostgreSQL connection string | `postgres://user:pass@localhost:5432/db` |\n| `AUTH_USER` / `AUTH_PASS` | Login credentials (optional; enables auth) | `admin` / `secret` |\n| `AUTH_SECRET` | Cookie signing key (random string) | ` anything long ` |\n| `AUTH_ALLOW_REGISTER` | Allow new users to sign up (`true` / `false`) | `true` |\n| `COOKIE_SECURE` | Add `Secure` flag to auth cookie (for HTTPS) | `true` |\n| `FILE_EXT_WHITELIST` | Allow extra file extensions | `\\.(yml|yaml|env|json)$` |\n| `ALLOW_ALL_EXTENSIONS` | Disable extension checks entirely | `true` |\n| `STATUS_CHECK_INTERVAL` | Container health check interval (ms) | `60000` |\n| `TZ` | Container timezone | `Europe/Moscow` |\n| `PORT` | HTTP port inside the container | `3710` |\n\n---\n\n## Tips\n\n- **Scanner inside LXC / Docker?** The network scanner needs `NET_RAW` capability for ICMP ping. In the provided Compose template this is handled via `cap_add` and `network_mode: host`. If devices still don't appear, make sure your LXC container is bridged to the LAN — NAT mode isolates the scanner.\n- **No database?** Kompoz works fine with just the filesystem. PostgreSQL is only needed if you want user accounts and scan history persistence.\n- **First launch** — if you don't see any projects, check that `COMPOSE_MOUNTS` points to the right host paths inside the container.\n\n---\n\n## License\n\nAGPL-3.0-or-later\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohn710%2Fkompoz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohn710%2Fkompoz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohn710%2Fkompoz/lists"}