From 2c8d04051de3f6372e1142ec2b64781bb67778c5 Mon Sep 17 00:00:00 2001 From: Indra Gunanda Date: Tue, 4 Aug 2026 18:43:32 +0700 Subject: [PATCH] docs: add complete deployment guide for v0.0.2 Add copy-paste setup and operations guide covering: - gRPC server via Docker, Compose, and local binary - panel-wide token/security constraints and project prerequisite - image deployments with env/resources/custom domains - single and multi-service Compose deployments - CLI image, Dockerfile, Git/GitHub, and Compose workflows - domains, logs, scaling, resources, lifecycle, cleanup - automatic redeploy semantics and troubleshooting Update README RPC count, Go requirement, access model, UpdateDeploy docs, and release examples to v0.0.2. --- README.md | 20 +- docs/deployment-guide.md | 795 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 806 insertions(+), 9 deletions(-) create mode 100644 docs/deployment-guide.md diff --git a/README.md b/README.md index c819c66..51acbf6 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 │ └──────────────────┬──────────────────────────────────┘ @@ -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 @@ -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. @@ -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 @@ -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 @@ -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 \ @@ -405,13 +407,13 @@ docker run --rm --env-file .env \ | Git event | Image tags | |-----------|-----------| | push/merge to `master` | `dev`, `dev-` | -| 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 diff --git a/docs/deployment-guide.md b/docs/deployment-guide.md new file mode 100644 index 0000000..fbd3e8d --- /dev/null +++ b/docs/deployment-guide.md @@ -0,0 +1,795 @@ +# Deployment Guide + +This guide covers deploying the `deploy-everything` gRPC server and using both interfaces: + +- **gRPC API** — deploy prebuilt container images or complete Compose stacks. +- **CLI** — deploy images, inline Dockerfiles, Git/GitHub sources, and Compose sources. + +Examples use release `0.0.2`. + +## 1. Prerequisites + +- Easypanel endpoint and API key. +- A wildcard/default domain configured in Easypanel. +- Docker for the packaged gRPC server, or Go 1.25+ for local builds. +- `grpcurl` for gRPC examples. +- `jq` for safely embedding Compose YAML into JSON. + +Never commit `.env` or print API keys/tokens in CI logs. + +## 2. Configuration + +```bash +cp .env.example .env +``` + +```dotenv +EASYPANEL_ENDPOINT=https://panel.example.com +EASYPANEL_API_KEY=replace-with-panel-api-key +EASYPANEL_HTTP_TIMEOUT=5m + +GRPC_PORT=50051 +GRPC_AUTH_TOKENS=replace-with-long-random-client-token + +DEFAULT_DOMAIN=example.easypanel.host +``` + +`GRPC_AUTH_TOKENS` accepts comma-separated tokens. Every gRPC call must send one as `authorization` metadata. + +Tokens are **panel-wide credentials**, not tenant/project-scoped credentials. Any valid token can operate on any project name accepted by the connected Easypanel instance. Keep tokens limited to trusted operators/services. Add a project-authorization gateway or use separate Easypanel instances when strict tenant isolation is required. + +`EASYPANEL_HTTP_TIMEOUT` accepts a Go duration such as `90s`, `5m`, or `10m`. Deploy calls can block while Docker pulls/builds images, so the default is `5m`. + +### Create the example project + +Every deployment request expects its Easypanel project to exist. This guide uses project `demo`. Create it once in the Easypanel UI or with the CLI: + +```bash +set -a; source .env; set +a +go run . projects create demo +``` + +The gRPC deployment RPCs create services inside projects; they do not create projects. + +## 3. Run the gRPC server + +### Docker + +```bash +docker pull ghcr.io/igun997/deploy-everything:0.0.2 + +docker run -d \ + --name deploy-everything \ + --restart unless-stopped \ + -p 50051:50051 \ + --env-file .env \ + ghcr.io/igun997/deploy-everything:0.0.2 +``` + +Verify: + +```bash +docker logs deploy-everything +docker run --rm ghcr.io/igun997/deploy-everything:0.0.2 version +``` + +### Docker Compose + +```yaml +# compose.grpc-server.yml +services: + deploy-everything: + image: ghcr.io/igun997/deploy-everything:0.0.2 + restart: unless-stopped + ports: + - "50051:50051" + environment: + EASYPANEL_ENDPOINT: ${EASYPANEL_ENDPOINT} + EASYPANEL_API_KEY: ${EASYPANEL_API_KEY} + EASYPANEL_HTTP_TIMEOUT: ${EASYPANEL_HTTP_TIMEOUT:-5m} + GRPC_PORT: "50051" + GRPC_AUTH_TOKENS: ${GRPC_AUTH_TOKENS} + DEFAULT_DOMAIN: ${DEFAULT_DOMAIN} +``` + +```bash +docker compose --env-file .env -f compose.grpc-server.yml up -d +docker compose -f compose.grpc-server.yml logs -f +``` + +### Local binary + +```bash +make build +set -a; source .env; set +a +./dist/grpc-server +``` + +### Network security + +The server currently listens with plaintext gRPC. Keep port `50051` private (VPN, private network, firewall) or terminate TLS at a gRPC-capable proxy before exposing it publicly. Bearer tokens authenticate calls but do not encrypt traffic. + +## 4. Configure `grpcurl` + +```bash +export GRPC_ADDR=127.0.0.1:50051 +export GRPC_TOKEN='replace-with-client-token' + +# Reflection is enabled. Auth metadata is still required. +grpcurl -plaintext \ + -H "authorization: $GRPC_TOKEN" \ + "$GRPC_ADDR" list paas.PaaS +``` + +Reusable shell function: + +```bash +paas_call() { + local method="$1" + grpcurl -plaintext \ + -H "authorization: $GRPC_TOKEN" \ + -d @ \ + "$GRPC_ADDR" "paas.PaaS/$method" +} +``` + +Usage: + +```bash +echo '{"project":"demo"}' | paas_call ListServices +``` + +## 5. gRPC: deploy a prebuilt Docker image + +`DeployContainer` accepts an existing registry image. It creates an app service, applies env/resources, deploys, creates domains, then redeploys to apply proxy routing. + +### Minimal image + +```bash +cat <<'JSON' | paas_call DeployContainer +{ + "project": "demo", + "service": "web", + "image": "nginx:alpine", + "port": 80 +} +JSON +``` + +The response contains `defaultDomain`, `serviceId`, and `deployUrl`. + +### Image with env, resources, and custom domain + +```bash +cat <<'JSON' | paas_call DeployContainer +{ + "project": "demo", + "service": "api", + "image": "ghcr.io/acme/api:1.4.0", + "port": 3000, + "customDomain": "api.example.com", + "env": { + "NODE_ENV": "production", + "PORT": "3000" + }, + "resources": { + "cpuLimit": 2, + "cpuReservation": 0.5, + "memoryLimit": 1024, + "memoryReservation": 256 + } +} +JSON +``` + +Use registry credentials configured in Easypanel for private images. + +### Dockerfile limitation in gRPC + +The gRPC `DeployContainer` RPC deploys **prebuilt images**; it does not accept Dockerfile source. For Dockerfile builds, either: + +1. Build/push the image in CI, then call `DeployContainer`; or +2. Use the CLI Dockerfile workflow in section 9. + +## 6. gRPC: deploy Compose + +### Compose rules + +- Do not publish host HTTP ports. Use `expose` and Easypanel domains. +- The gRPC server structurally removes `ports` from submitted Compose YAML. +- `network_mode: host` is rejected. +- Each public Compose service needs a `domains` mapping with its internal service name and container port. +- Compose deploy runs twice when domains exist: first for service discovery, second to apply generated Traefik routing. + +### Single-service Compose + +Create `docker-compose.yml`: + +```yaml +services: + web: + image: traefik/whoami + restart: unless-stopped + expose: + - 80 +``` + +Build a safe JSON request and submit it: + +```bash +jq -n --rawfile compose docker-compose.yml '{ + project: "demo", + service: "whoami-stack", + composeContent: $compose, + domains: [ + {composeService: "web", port: 80} + ] +}' > /tmp/deploy-compose.json + +paas_call DeployCompose < /tmp/deploy-compose.json +``` + +Without `customDomain`, generated host format is: + +```text +{project}-{service}-{composeService}.{DEFAULT_DOMAIN} +``` + +### Multi-service WordPress + MySQL + Adminer + +```yaml +# wordpress.compose.yml +services: + wordpress: + image: wordpress:6-apache + restart: unless-stopped + expose: + - 80 + environment: + WORDPRESS_DB_HOST: db:3306 + WORDPRESS_DB_USER: wp + WORDPRESS_DB_PASSWORD: ${DB_PASSWORD} + WORDPRESS_DB_NAME: wordpress + depends_on: + - db + volumes: + - wordpress_data:/var/www/html + + db: + image: mysql:8 + restart: unless-stopped + environment: + MYSQL_DATABASE: wordpress + MYSQL_USER: wp + MYSQL_PASSWORD: ${DB_PASSWORD} + MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD} + volumes: + - db_data:/var/lib/mysql + + # Kept private: no domain mapping and no published host port. + adminer: + image: adminer:5 + restart: unless-stopped + +volumes: + wordpress_data: + db_data: +``` + +Read secrets without placing them in shell history or process arguments, then store temporary request files with owner-only permissions: + +```bash +umask 077 +read -rsp 'WordPress DB password: ' DB_PASSWORD; echo +read -rsp 'MySQL root password: ' DB_ROOT_PASSWORD; echo +printf '%s' "$DB_PASSWORD" > /tmp/wordpress-db-password +printf '%s' "$DB_ROOT_PASSWORD" > /tmp/wordpress-root-password +unset DB_PASSWORD DB_ROOT_PASSWORD + +jq -n \ + --rawfile compose wordpress.compose.yml \ + --rawfile dbPassword /tmp/wordpress-db-password \ + --rawfile rootPassword /tmp/wordpress-root-password '{ + project: "demo", + service: "wordpress", + composeContent: $compose, + env: { + DB_PASSWORD: $dbPassword, + DB_ROOT_PASSWORD: $rootPassword + }, + domains: [ + { + composeService: "wordpress", + port: 80, + customDomain: "blog.example.com" + } + ] + }' > /tmp/deploy-wordpress.json + +paas_call DeployCompose < /tmp/deploy-wordpress.json +rm -f /tmp/deploy-wordpress.json /tmp/wordpress-db-password /tmp/wordpress-root-password +``` + +Keep databases and administration UIs private unless external access is explicitly required and protected with authentication/IP restrictions. + +## 7. gRPC: inspect and operate services + +### Status and listing + +```bash +cat <<'JSON' | paas_call GetServiceStatus +{"project":"demo","service":"api","serviceType":"app"} +JSON + +cat <<'JSON' | paas_call ListServices +{"project":"demo"} +JSON +``` + +### Environment + +`UpdateEnv` replaces the saved env content and automatically deploys app/compose services. + +```bash +cat <<'JSON' | paas_call UpdateEnv +{ + "project": "demo", + "service": "api", + "serviceType": "app", + "env": { + "NODE_ENV": "production", + "LOG_LEVEL": "info" + } +} +JSON +``` + +### Domains + +Add app domain: + +```bash +cat <<'JSON' | paas_call AddDomain +{ + "project": "demo", + "service": "api", + "serviceType": "app", + "host": "api.example.com", + "port": 3000, + "https": true +} +JSON +``` + +Add Compose domain: + +```bash +cat <<'JSON' | paas_call AddDomain +{ + "project": "demo", + "service": "wordpress", + "serviceType": "compose", + "composeService": "adminer", + "host": "db-admin.example.com", + "port": 8080, + "https": true +} +JSON +``` + +List domains: + +```bash +cat <<'JSON' | paas_call ListDomains +{"project":"demo","service":"api"} +JSON +``` + +Remove domain using ID from `ListDomains`: + +```bash +cat <<'JSON' | paas_call RemoveDomain +{ + "domainId": "domain-id", + "project": "demo", + "service": "api", + "serviceType": "app" +} +JSON +``` + +Legacy clients may send only `domainId`; server resolves its destination before deleting and redeploying. + +### Logs + +App logs: + +```bash +cat <<'JSON' | paas_call GetLogs +{ + "project": "demo", + "service": "api", + "serviceType": "app", + "limit": 200 +} +JSON +``` + +Compose logs for one internal service: + +```bash +cat <<'JSON' | paas_call GetLogs +{ + "project": "demo", + "service": "wordpress", + "serviceType": "compose", + "composeService": "wordpress", + "limit": 200 +} +JSON +``` + +Response includes flat `logs` text and structured `entries` (`timestamp`, `line`, `level`, `stream`). Easypanel's logging backend must be enabled; otherwise panel can return `fetch failed`. + +### Scale and deploy settings + +Only app services expose deploy/replica settings. Compose replicas belong in Compose YAML. + +```bash +cat <<'JSON' | paas_call ScaleService +{"project":"demo","service":"api","serviceType":"app","replicas":2} +JSON + +cat <<'JSON' | paas_call UpdateDeploy +{ + "project": "demo", + "service": "api", + "serviceType": "app", + "replicas": 2, + "zeroDowntime": true, + "command": "./server" +} +JSON +``` + +Existing deploy settings are fetched and merged before changing replicas, preventing unrelated settings from being reset. + +### Resources + +```bash +cat <<'JSON' | paas_call UpdateResources +{ + "project": "demo", + "service": "api", + "serviceType": "app", + "resources": { + "cpuLimit": 2, + "cpuReservation": 0.5, + "memoryLimit": 1024, + "memoryReservation": 256 + } +} +JSON +``` + +Compose resources belong under each service in Compose YAML because Easypanel has no `services.compose.updateResources` route. + +### Lifecycle + +```bash +for method in RestartService StopService StartService; do + printf '%s\n' '{"project":"demo","service":"api","serviceType":"app"}' | paas_call "$method" +done +``` + +Destroy app: + +```bash +cat <<'JSON' | paas_call DestroyService +{"project":"demo","service":"api","serviceType":"app"} +JSON +``` + +Destroy Compose: + +```bash +cat <<'JSON' | paas_call DestroyService +{"project":"demo","service":"wordpress","serviceType":"compose"} +JSON +``` + +Destroy attempts to remove attached domains first, then destroys the service. Domain cleanup is best-effort; if panel domain APIs fail, verify with `ListDomains` and remove any stale records manually. + +## 8. Configure the CLI + +Use the release binary: + +```bash +# Download archive from: +# https://github.com/igun997/deploy-everything/releases/tag/v0.0.2 +``` + +Or run the CLI image: + +```bash +docker run --rm --env-file .env \ + ghcr.io/igun997/deploy-everything-cli:0.0.2 version +``` + +For local commands: + +```bash +set -a; source .env; set +a +export CLI=./deploy-everything +# Or: export CLI='./dist/deploy-everything' after `make build`. +``` + +Examples below use `$CLI`. If using Docker for every command, replace `$CLI` with: + +```bash +docker run --rm --env-file .env \ + ghcr.io/igun997/deploy-everything-cli:0.0.2 +``` + +## 9. CLI: normal app deployment cases + +### Existing Docker image + +```bash +$CLI services create demo web app +$CLI services set-image demo web nginx:alpine +$CLI domains create demo web web.example.com --type app --port 80 --https +``` + +`set-image` and `domains create` automatically deploy after saving changes. + +### Inline Dockerfile + +Create `Dockerfile`: + +```dockerfile +FROM nginx:alpine +RUN printf '

Deployed from Dockerfile

' > /usr/share/nginx/html/index.html +EXPOSE 80 +``` + +Deploy: + +```bash +$CLI services create demo dockerfile-web app +$CLI services set-dockerfile demo dockerfile-web "$(cat Dockerfile)" +$CLI domains create demo dockerfile-web dockerfile.example.com \ + --type app \ + --port 80 \ + --https +``` + +If a project requires a build type explicitly: + +```bash +$CLI services set-build demo dockerfile-web dockerfile +``` + +Source/build changes automatically deploy. + +### Generic Git repository + +```bash +$CLI services create demo git-app app +$CLI services set-git demo git-app git@github.com:acme/app.git main \ + --path / \ + --auto-deploy +$CLI domains create demo git-app git-app.example.com --type app --port 3000 --https +``` + +For private repositories, add Easypanel's service deploy key to the Git provider. + +### GitHub source + +```bash +$CLI services create demo github-app app +$CLI services set-github demo github-app acme app main \ + --path / \ + --auto-deploy +$CLI domains create demo github-app github-app.example.com --type app --port 3000 --https +``` + +### Environment and resources + +```bash +$CLI services set-env demo github-app app \ + NODE_ENV=production \ + PORT=3000 + +$CLI services update-resources demo github-app app 2 1024 +$CLI services update-deploy demo github-app app 2 +``` + +App env/resource/deploy mutations are applied automatically. Database resource routes apply their own restart behavior. + +## 10. CLI: Compose deployment cases + +### Inline Compose + +```yaml +# docker-compose.yml +services: + web: + image: nginx:alpine + restart: unless-stopped + expose: + - 80 +``` + +```bash +$CLI services create demo stack compose +$CLI services set-source-inline demo stack docker-compose.yml "$(cat docker-compose.yml)" +$CLI domains create demo stack stack.example.com \ + --type compose \ + --compose-service web \ + --port 80 \ + --https +``` + +Both source and domain commands automatically redeploy. Direct CLI Compose source is sent to Easypanel as written, so use `expose` rather than host `ports`. + +### Compose from Git + +```bash +$CLI services create demo git-stack compose +$CLI services set-source-git-compose \ + demo git-stack \ + git@github.com:acme/stack.git \ + main \ + docker-compose.yml \ + --root-path /deploy \ + --auto-deploy + +$CLI domains create demo git-stack app.example.com \ + --type compose \ + --compose-service web \ + --port 3000 \ + --https +``` + +`--root-path` must begin with `/` and points to the repository directory containing the Compose file. + +### Compose env and logs + +```bash +$CLI services set-env demo git-stack compose \ + APP_TAG=1.4.0 \ + DATABASE_PASSWORD=demo-only-placeholder + +$CLI services logs demo git-stack \ + --type compose \ + --compose-service web \ + --limit 200 +``` + +CLI env values are command arguments and can appear in shell history/process listings. Use placeholders for local demos. For production secrets, prefer Easypanel's protected environment editor or a private gRPC request supplied through stdin. + +### Compose lifecycle + +```bash +$CLI services inspect demo git-stack compose +$CLI services restart demo git-stack compose +$CLI services stop demo git-stack compose +$CLI services start demo git-stack compose +$CLI services deploy demo git-stack compose +$CLI services destroy demo git-stack compose +``` + +## 11. CLI: domains and cleanup + +List domains: + +```bash +$CLI domains list demo web +``` + +Create app domain: + +```bash +$CLI domains create demo web web.example.com \ + --type app --port 80 --https +``` + +Create Compose domain: + +```bash +$CLI domains create demo stack stack.example.com \ + --type compose --compose-service web --port 80 --https +``` + +Delete domain and apply routing removal: + +```bash +$CLI domains delete demo stack compose DOMAIN_ID +``` + +Domain deletion requires project/service/type because runtime routing must be redeployed after deletion. + +## 12. Redeploy behavior + +Easypanel's `update*` routes save configuration. Running containers and generated Traefik/Compose overrides change only when the service is deployed again. + +This project automatically applies that rule: + +| Change | Automatic action | +|---|---| +| App image, Git/GitHub, Dockerfile, build config | Deploy app | +| App/Compose env | Deploy app/Compose | +| App resources/deploy settings | Deploy app | +| App/Compose domain add | Deploy target service | +| App/Compose domain delete | Resolve target, delete, deploy target service | +| Initial Compose with domains | Initial deploy, create domains, second deploy | + +If a domain exists but Traefik returns `502` while container logs show a healthy application, redeploy the target service once: + +```bash +$CLI services deploy demo stack compose +``` + +## 13. Troubleshooting + +### `content: Required` + +Old callers sent `composeContent` directly to Easypanel's `updateSourceInline`. Correct panel field is `content`. Current CLI/gRPC server handles this correctly. + +### `path: Required` or `ref: Required` + +Use `ref`, not `branch`, and provide a build path: + +```bash +$CLI services set-git demo app main --path / +``` + +### `rootPath: Required` + +Compose Git sources require: + +```bash +--root-path / +``` + +### Compose deploy fails because port is already allocated + +Remove host `ports:` for HTTP services and use `expose:` plus an Easypanel domain. Ports 80/443 belong to Traefik. + +### Domain returns `502` + +1. Confirm application listens on `0.0.0.0`, not only `127.0.0.1`. +2. Confirm Compose domain uses correct `composeService` and internal port. +3. Redeploy after adding/changing the domain. +4. Poll until application initialization finishes. + +### Deploy times out + +Increase timeout: + +```dotenv +EASYPANEL_HTTP_TIMEOUT=10m +``` + +Large Compose pulls/builds can take several minutes. + +### Logs return `fetch failed` + +Enable/configure Easypanel's logging backend. `logs.getSettings` returning null indicates panel log storage is not configured. + +### gRPC `Unauthenticated` + +Send exact token configured in `GRPC_AUTH_TOKENS`: + +```bash +-H "authorization: $GRPC_TOKEN" +``` + +### Check versions + +```bash +./deploy-everything version +./grpc-server version +docker run --rm ghcr.io/igun997/deploy-everything-cli:0.0.2 version +```