Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# deploy-everything

A Go toolkit for managing [Easypanel](https://easypanel.io) deployments — both a CLI for direct tRPC control and a gRPC server that exposes Easypanel as a multi-tenant PaaS.
A Go toolkit for managing [Easypanel](https://easypanel.io) deployments — both a CLI for direct tRPC control and a gRPC server that exposes panel-wide deployment operations to authenticated clients.

## Architecture

Expand All @@ -13,7 +13,7 @@ A Go toolkit for managing [Easypanel](https://easypanel.io) deployments — both
┌──────────────────▼──────────────────────────────────┐
│ gRPC PaaS Server (cmd/grpc-server) │
│ • Auth interceptor (constant-time token compare) │
│ • 15 RPC methods │
│ • 16 RPC methods │
│ • Compose port sanitization │
│ • Auto-domain provisioning │
└──────────────────┬──────────────────────────────────┘
Expand All @@ -38,9 +38,11 @@ A Go toolkit for managing [Easypanel](https://easypanel.io) deployments — both

## Quick Start

For complete copy-paste examples covering gRPC server setup, Docker images, inline Dockerfiles, Git/GitHub sources, Compose stacks, domains, logs, resources, lifecycle, and troubleshooting, see **[Deployment Guide](docs/deployment-guide.md)**.

### Prerequisites

- Go 1.21+
- Go 1.25+
- Access to an Easypanel instance with API key
- (Optional) `protoc` + `protoc-gen-go` + `protoc-gen-go-grpc` for proto regeneration

Expand All @@ -63,7 +65,6 @@ cp .env.example .env
| `GRPC_PORT` | No | gRPC listen port (default: `50051`) |
| `GRPC_AUTH_TOKENS` | Yes* | Comma-separated bearer tokens for gRPC clients |
| `DEFAULT_DOMAIN` | Yes* | Easypanel wildcard domain (e.g. `xyz.easypanel.host`) |
| `CUSTOM_DOMAIN` | No | Your custom wildcard domain (e.g. `apps.example.com`) |

*Required for gRPC server only.

Expand Down Expand Up @@ -170,7 +171,7 @@ grpcurl -plaintext -H "authorization: your-token" \
localhost:50051 paas.PaaS/ListServices
```

Tokens are configured via `GRPC_AUTH_TOKENS` (comma-separated for multi-tenant).
Tokens are configured via `GRPC_AUTH_TOKENS` (comma-separated). Tokens grant panel-wide API access; they are not scoped to individual projects. Use separate Easypanel instances or add an authorization layer when strict tenant isolation is required.

### RPC Methods

Expand All @@ -191,6 +192,7 @@ Tokens are configured via `GRPC_AUTH_TOKENS` (comma-separated for multi-tenant).
| `GetLogs` | Fetch app/compose logs with structured entries and flat text |
| `ScaleService` | Set replica count |
| `UpdateResources` | Set CPU/memory limits |
| `UpdateDeploy` | Set app replicas, zero-downtime behavior, and command |

### Examples

Expand Down Expand Up @@ -380,11 +382,11 @@ One `Dockerfile`, two final stages, both distroless + static (`CGO_ENABLED=0`),
```bash
# Run the gRPC server
docker run --rm -p 50051:50051 --env-file .env \
ghcr.io/igun997/deploy-everything:0.0.1
ghcr.io/igun997/deploy-everything:0.0.2

# Run a CLI command
docker run --rm --env-file .env \
ghcr.io/igun997/deploy-everything-cli:0.0.1 projects list
ghcr.io/igun997/deploy-everything-cli:0.0.2 projects list

# Bleeding edge (current master)
docker run --rm --env-file .env \
Expand All @@ -405,13 +407,13 @@ docker run --rm --env-file .env \
| Git event | Image tags |
|-----------|-----------|
| push/merge to `master` | `dev`, `dev-<short-sha>` |
| tag `v0.0.1` | `0.0.1`, `0.0`, `0`, `latest` |
| tag `v0.0.2` | `0.0.2`, `0.0`, `0`, `latest` |
| tag `v1.2.3` | `1.2.3`, `1.2`, `1`, `latest` |
| pre-release tag `v1.2.3-rc1` | `1.2.3-rc1` only (no `latest`, no `1.2`/`1`) |

So `:dev` always points at the current `master`, `:latest` always points at the newest stable release.

The leading `v` is stripped from image tags: git tag `v0.0.1` produces image tag `0.0.1`. The binaries still report the full `v0.0.1` from `version`.
The leading `v` is stripped from image tags: git tag `v0.0.2` produces image tag `0.0.2`. The binaries still report the full `v0.0.2` from `version`.

### Cutting a release

Expand Down
Loading