mirror of
https://github.com/Dvorinka/Containr.git
synced 2026-10-29 00:01:22 +00:00
Merge pull request #6 from Dvorinka/docs/readme-tighten
docs: tighten README
This commit is contained in:
1 file changed
+44
-114
@@ -13,7 +13,6 @@
|
|||||||
<a href="#quick-start">Quick Start</a> •
|
<a href="#quick-start">Quick Start</a> •
|
||||||
<a href="#screenshots">Screenshots</a> •
|
<a href="#screenshots">Screenshots</a> •
|
||||||
<a href="#features">Features</a> •
|
<a href="#features">Features</a> •
|
||||||
<a href="#architecture">Architecture</a> •
|
|
||||||
<a href="docs/guides/">Guides</a> •
|
<a href="docs/guides/">Guides</a> •
|
||||||
<a href="CONTRIBUTING.md">Contributing</a>
|
<a href="CONTRIBUTING.md">Contributing</a>
|
||||||
</p>
|
</p>
|
||||||
@@ -23,17 +22,11 @@
|
|||||||
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License: MIT"></a>
|
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License: MIT"></a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
## What is Containr?
|
Containr is an open-source control plane for Docker. Create a project, drop
|
||||||
|
services onto a visual canvas, wire them together with environment variables,
|
||||||
Containr is an open-source control plane for Docker. It gives you a
|
and deploy — no Kubernetes, no cloud bill. Services appear as nodes with
|
||||||
project-first deployment workflow — create a project, drop services onto a
|
auto-inferred connections; logs, metrics, builds, and rollbacks are one
|
||||||
visual canvas, wire them together with environment variables, and deploy —
|
click away.
|
||||||
without Kubernetes, without a cloud bill, and without giving up control of
|
|
||||||
your infrastructure.
|
|
||||||
|
|
||||||
The UI is inspired by Railway's project canvas: services appear as nodes,
|
|
||||||
connections are inferred automatically, and everything — logs, metrics,
|
|
||||||
deployments, builds — is one click away.
|
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
@@ -47,23 +40,41 @@ deployments, builds — is one click away.
|
|||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- **Project canvas** — visual service topology with groups, drag/drop layout,
|
- **Project canvas** — visual service topology, groups, drag/drop, auto-inferred connections
|
||||||
and auto-inferred connections
|
- **Deployments & builds** — Docker deploys with history, logs, rollback, live build status
|
||||||
- **Deployments** — Docker-based deploys with history, logs, and rollback
|
- **Git integration** — GitHub, GitLab, Bitbucket, Gitea; webhooks, GitHub App
|
||||||
- **Git integration** — deploy from GitHub, GitLab, Bitbucket, or Gitea;
|
- **Managed databases** — one-click provisioning with backup/restore
|
||||||
repository and branch pickers, webhooks, GitHub App support
|
- **Metrics** — per-service Docker stats plus host CPU/memory/disk telemetry
|
||||||
- **Builds** — build pipeline with live status over WebSocket
|
- **Templates, cron, previews** — service catalog, scheduled jobs, preview deploys
|
||||||
- **Service metrics** — real CPU/memory/network telemetry from Docker stats
|
- **Auth & security** — Better Auth sessions (email + OAuth), audit logs, vuln scans
|
||||||
- **Templates** — one-click service catalog (databases, apps, tooling)
|
- **Networking** — Traefik reverse proxy, optional Cloudflare Tunnel
|
||||||
- **Databases** — managed database services with backup/restore actions
|
|
||||||
- **Cron jobs** — scheduled jobs with execution history
|
## Quick Start
|
||||||
- **Preview environments** — per-project preview deploys
|
|
||||||
- **Variables & environments** — per-service env vars, production/preview/dev
|
Requires Docker with the Compose plugin, `openssl`, and `curl`:
|
||||||
- **Node monitoring** — host CPU, memory, disk, and network telemetry
|
|
||||||
- **Security** — audit logs, vulnerability scans, compliance reports
|
```bash
|
||||||
- **Auth** — Better Auth sessions (email + OAuth), per-user resource scoping
|
curl -fsSL https://raw.githubusercontent.com/Dvorinka/Containr/main/install.sh | bash
|
||||||
- **Self-hosted networking** — Traefik reverse proxy, optional Cloudflare
|
```
|
||||||
Tunnel for exposure without port forwarding
|
|
||||||
|
Installs into `./containr`, generates secrets, pulls the published `:latest`
|
||||||
|
images, and starts the stack — UI at `http://localhost:3000`, API at
|
||||||
|
`http://localhost:8082`. Non-interactive; re-runs never overwrite `.env`.
|
||||||
|
|
||||||
|
Override with env vars:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl -fsSL https://raw.githubusercontent.com/Dvorinka/Containr/main/install.sh | \
|
||||||
|
HTTP_PORT=8080 CONTAINR_DIR=/opt/containr bash
|
||||||
|
```
|
||||||
|
|
||||||
|
`CONTAINR_VERSION` pins a release tag, `CONTAINR_REF` selects the git ref for
|
||||||
|
downloaded files, `CONTAINR_BUILD=1` builds from source. From a git checkout,
|
||||||
|
`./install.sh` installs in place; plain `docker compose up -d` pulls the same
|
||||||
|
images (`--build` to compile locally).
|
||||||
|
|
||||||
|
Local development and self-hosted deployment (Traefik + Cloudflare Tunnel):
|
||||||
|
see [docs/guides/](docs/guides/) and `infra/docker-compose.yml`.
|
||||||
|
|
||||||
## Architecture
|
## Architecture
|
||||||
|
|
||||||
@@ -74,97 +85,16 @@ infra/ Self-hosted compose: Traefik + Cloudflare Tunnel
|
|||||||
docs/ Guides, OpenAPI spec, design documents
|
docs/ Guides, OpenAPI spec, design documents
|
||||||
```
|
```
|
||||||
|
|
||||||
| Component | Default port |
|
All configuration is via environment variables — see `.env.example`. Never
|
||||||
| ------------ | ------------ |
|
commit `.env` or `.env.prod`; if a secret was ever committed, rotate it.
|
||||||
| Frontend | 3000 (prod) / 5173 (dev) |
|
|
||||||
| API | 8082 |
|
|
||||||
| Auth sidecar | 3001 |
|
|
||||||
| PostgreSQL | 5432 |
|
|
||||||
| Redis | 6379 |
|
|
||||||
|
|
||||||
## Quick Start
|
|
||||||
|
|
||||||
### Easy install (recommended)
|
|
||||||
|
|
||||||
Requires Docker with the Compose plugin, `openssl`, and `curl`. One-liner,
|
|
||||||
no clone needed:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
curl -fsSL https://raw.githubusercontent.com/Dvorinka/Containr/main/install.sh | bash
|
|
||||||
```
|
|
||||||
|
|
||||||
Installs into `./containr`, generates secrets, pulls the published `:latest`
|
|
||||||
images from GHCR, and starts the stack. Non-interactive — configure with
|
|
||||||
env vars:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
curl -fsSL https://raw.githubusercontent.com/Dvorinka/Containr/main/install.sh | \
|
|
||||||
HTTP_PORT=8080 API_PORT=8082 CONTAINR_DIR=/opt/containr bash
|
|
||||||
```
|
|
||||||
|
|
||||||
`CONTAINR_VERSION` pins a release tag (e.g. `0.1.1`), `CONTAINR_REF` selects
|
|
||||||
the git ref for downloaded files, and `CONTAINR_BUILD=1` skips the registry
|
|
||||||
and builds from source — the installer downloads the source tarball when it
|
|
||||||
needs to build. An existing `.env` is never overwritten, so it is safe to
|
|
||||||
re-run.
|
|
||||||
|
|
||||||
From a git checkout, `./install.sh` does the same thing in place.
|
|
||||||
|
|
||||||
Frontend at `http://localhost:3000`, API at `http://localhost:8082`.
|
|
||||||
|
|
||||||
### Docker Compose (manual)
|
|
||||||
|
|
||||||
```bash
|
|
||||||
cp .env.example .env # fill in secrets
|
|
||||||
docker compose up -d # pulls ghcr.io/dvorinka/containr-*:latest
|
|
||||||
```
|
|
||||||
|
|
||||||
Compose pulls the published images by default; run `docker compose up -d
|
|
||||||
--build` to build from source. Host ports can be remapped in `.env`
|
|
||||||
(`HTTP_PORT`, `API_PORT`, `POSTGRES_PORT`, `REDIS_PORT`) if the defaults
|
|
||||||
collide with other services.
|
|
||||||
|
|
||||||
### Local development
|
|
||||||
|
|
||||||
```bash
|
|
||||||
docker compose up -d postgres redis # data services only
|
|
||||||
cd app/backend && go run ./cmd/server # API + embedded auth sidecar
|
|
||||||
cd app/frontend && npm install && npm run dev
|
|
||||||
```
|
|
||||||
|
|
||||||
Frontend dev server at `http://localhost:5173`.
|
|
||||||
|
|
||||||
### Self-hosted with Traefik + Cloudflare Tunnel
|
|
||||||
|
|
||||||
See `infra/docker-compose.yml` and
|
|
||||||
[docs/guides/CLOUDFLARE_SETUP.md](docs/guides/CLOUDFLARE_SETUP.md).
|
|
||||||
|
|
||||||
## Configuration
|
|
||||||
|
|
||||||
All configuration is via environment variables — see `.env.example`.
|
|
||||||
Required for production: `JWT_SECRET`, `BETTER_AUTH_SECRET`,
|
|
||||||
`BETTER_AUTH_INTERNAL_TOKEN`, database and Redis credentials.
|
|
||||||
|
|
||||||
**Never commit `.env` or `.env.prod`.** Both are gitignored; if a secret was
|
|
||||||
ever committed, rotate it.
|
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
- [docs/guides/](docs/guides/) — setup, deployment, Cloudflare, autoscaling
|
- [docs/guides/](docs/guides/) — setup, deployment, Cloudflare, autoscaling
|
||||||
- [docs/api/openapi.yaml](docs/api/openapi.yaml) — API contract
|
- [docs/api/openapi.yaml](docs/api/openapi.yaml) — API contract
|
||||||
- [docs/developers/onboarding.md](docs/developers/onboarding.md) — contributor onboarding
|
- [docs/developers/onboarding.md](docs/developers/onboarding.md) — contributor onboarding
|
||||||
- [docs/design/](docs/design/) — UI design references
|
|
||||||
- `make help` — common tasks
|
- `make help` — common tasks
|
||||||
|
|
||||||
## Contributing
|
---
|
||||||
|
|
||||||
See [CONTRIBUTING.md](CONTRIBUTING.md). Issues and PRs welcome.
|
[Contributing](CONTRIBUTING.md) · [Security](SECURITY.md) · [MIT License](LICENSE) © 2026 Tomas Dvorak
|
||||||
|
|
||||||
## Security
|
|
||||||
|
|
||||||
See [SECURITY.md](SECURITY.md). Report vulnerabilities privately — do not
|
|
||||||
open public issues.
|
|
||||||
|
|
||||||
## License
|
|
||||||
|
|
||||||
[MIT](LICENSE) © 2026 Tomas Dvorak
|
|
||||||
Reference in new issue
Block a user