Skip to content
paas-overview logo

PaaS Stack Overview

paas-overview

Overview of the PaaS stack - health checks, service URLs, and common operations.

SKILL.md

Full skill instructions

PaaS Stack Overview

This skill provides an overview of the self-hosted PaaS stack and common operations.

Services

ServicePurposeEnv Vars
GiteaGit repository hostingGITEA_TOKEN, GITEA_URL
CoolifyApplication deploymentCOOLIFY_TOKEN, COOLIFY_URL
n8nWorkflow automationN8N_TOKEN, N8N_URL
LobeChatAI chat interfaceLOBE_URL
OpenClawAI gatewayOPENCLAW_GATEWAY_TOKEN

Quick Health Check

echo "=== Service Health ==="
echo "Gitea: $(curl -sf $GITEA_URL/​api/​healthz && echo OK || echo FAIL)"
echo "Coolify: $(curl -sf $COOLIFY_URL/​api/​health && echo OK || echo FAIL)"
echo "n8n: $(curl -sf $N8N_URL/​healthz && echo OK || echo FAIL)"
echo "LobeChat: $(curl -sf $LOBE_URL/​api/​health && echo OK || echo FAIL)"

Available Skills

SkillPurposeQuick Command
giteaRepository managementList repos, create branches, manage PRs
coolifyDeployment managementDeploy apps, manage envs, view logs
n8nWorkflow automationCreate workflows, manage credentials
ci-cdCI/​CD pipeline setupConnect repos to Coolify
lobechatLobeChat integrationKnowledge base queries

Common Operations

Create and Deploy a New App

# 1. Create repository in Gitea
curl -X POST "$GITEA_URL/​api/​v1/​user/​repos" \
  -H "Authorization: token $GITEA_TOKEN" \
  -H "Content-Type: application/​json" \
  -d '{"name": "my-app", "auto_init": true}'

# 2. Connect to Coolify (creates deploy key + webhook)
bash /​srv/​paas/​scripts/​setup-ci-cd.sh my-app myapp 3000

# 3. Push code → auto deploys via webhook

CI/​CD Architecture

Push to Gitea
    ↓
Webhook → https://coolify.domain/​webhooks/​source/​gitea/​events/​manual?app={uuid}
    ↓
Coolify clones via SSH (git@gitea:user/​repo.git)
    ↓
Build container → Deploy to coolify network
    ↓
Traefik routes by domain → Container

Key requirements:

  • Gitea must be on coolify network (for SSH clone access)
  • Coolify proxy must be on paas-network (for cloudflared access)
  • Deploy key in both Coolify and Gitea
  • Webhook secret matching manual_webhook_secret_gitea

Check Deployment Status

curl -s "$COOLIFY_URL/​api/​v1/​deployments" \
  -H "Authorization: Bearer $COOLIFY_TOKEN" | jq '.[0:3] | .[] | {status, created_at}'

Trigger Manual Deployment

curl -X POST "$COOLIFY_URL/​api/​v1/​applications/​APP_UUID/​restart" \
  -H "Authorization: Bearer $COOLIFY_TOKEN"

Create Automation Workflow

# List n8n workflows
curl -s "$N8N_URL/​api/​v1/​workflows" \
  -H "X-N8N-API-KEY: $N8N_TOKEN" | jq '.data[] | {id, name, active}'

Scripts

ScriptPurpose
bash /​srv/​paas/​scripts/​setup-ci-cd.shConnect repo → Coolify with deploy keys
bash /​srv/​paas/​scripts/​refresh-tokens.shRegenerate API tokens
bash /​srv/​paas/​scripts/​bootstrap.shFull stack setup

Note: Use bash prefix for cross-platform compatibility.

Token Refresh

If API calls fail with authentication errors:

# Refresh all tokens
bash /​srv/​paas/​scripts/​refresh-tokens.sh --all

# Refresh specific service
bash /​srv/​paas/​scripts/​refresh-tokens.sh --gitea
bash /​srv/​paas/​scripts/​refresh-tokens.sh --coolify

Network Architecture

The stack uses two bridged networks for full inter-service communication:

NetworkServicesPurpose
paas-networkAll core servicesStack internal communication
coolifyDeployed apps + proxyCoolify-managed applications

All core services are connected to BOTH networks, allowing:

  • Stack services to communicate with each other
  • Stack services to communicate with deployed applications
  • n8n workflows to call deployed app APIs
  • OpenClaw agent to interact with deployed services

Network Troubleshooting

# Check which networks a service is on
docker inspect gitea --format '{{range $k, $v := .NetworkSettings.Networks}}{{$k}} {{end}}'

# Connect all core services to coolify network (if missing)
docker network connect coolify gitea
docker network connect coolify n8n
docker network connect coolify openclaw-cli
docker network connect coolify lobe-chat
docker network connect paas-network coolify-proxy

# Verify all connections
for svc in gitea n8n openclaw-cli lobe-chat; do
    echo "$svc: $(docker inspect $svc --format '{{range $k, $v := .NetworkSettings.Networks}}{{$k}} {{end}}')"
done

Service-Specific Skills

For detailed operations, use the dedicated skills:

  • Gitea operations: Read /​srv/​paas/​skills/​gitea/​SKILL.md
  • Coolify operations: Read /​srv/​paas/​skills/​coolify/​SKILL.md
  • n8n operations: Read /​srv/​paas/​skills/​n8n/​SKILL.md
  • CI/​CD setup: Read /​srv/​paas/​skills/​ci-cd/​SKILL.md

Environment Variables

All service URLs and tokens are available as environment variables:

# Check available env vars
env | grep -E "_URL|_TOKEN" | grep -v "="

More DevOps & CI/CD skills

Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.

6K 472.6K
View

Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.

6K 472.6K
View

Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.

1.5K 454.3K
View
azure-kubernetes logo
DevOps & CI/CD

azure-kubernetes

Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.

1.5K 447.1K
View

Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.

92.7K 354.9K
View
just-scrape logo
DevOps & CI/CD

just-scrape

Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.

69 245K
View

Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.

462 159.7K
View

Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.

462 159.1K
View
deploy-to-vercel logo
DevOps & CI/CD

deploy-to-vercel

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

31.9K 146.6K
View
programmatic-seo logo
DevOps & CI/CD

programmatic-seo

Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.

53.3K 140.1K
View

Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.

63 123.5K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View

Coding & apps AI tools

Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View
I
Coding & apps

Imagica

Build a no-code AI app in minutes.

Freemium
View
E
Coding & apps

Emergent.sh

An IDE for code migration from legacy to modern frameworks through coding agents.

Freemium
View
Wonder Dynamics logo
Coding & apps

Wonder Dynamics

Automate CGI animation in live-action scenes

Paid
View
M
Coding & apps

Mixo

Launch a website in seconds with AI.

Paid
View
AI Code Convert logo
Coding & apps

AI Code Convert

Streamline Your Coding Experience with AI Code Helper

Free
View