-
-
Notifications
You must be signed in to change notification settings - Fork 2
SERVICE_REFERENCE
This is the authoritative reference for all services available in nself, organized by category.
These services are always enabled and form the core infrastructure:
-
PostgreSQL - Primary database
- Port: 5432
- URL: Internal only
- Extensions: uuid-ossp, pgcrypto, pg_trgm, pgvector, PostGIS, hstore
-
Hasura GraphQL Engine - GraphQL API layer
- Port: 8080
- URL:
https://api.<domain> - Console:
https://api.<domain>/console
-
nHost Auth Service - Authentication & authorization
- Port: 4000
- URL:
https://auth.<domain> - JWT-based authentication
-
Nginx - Reverse proxy & SSL termination
- Ports: 80, 443
- Handles all routing
- SSL/TLS termination
-
nself Admin - Web-based management UI
- Port: 3021
- URL:
https://admin.<domain> - Complete project management interface
-
MinIO - S3-compatible object storage
- Port: 9000 (API), 9001 (Console)
- URL:
https://minio.<domain> - Console access for file management
-
Redis - In-memory cache & sessions
- Port: 6379
- Used by: Auth, Custom services
- No public route (internal only)
-
Functions - Serverless functions runtime
- Port: 3008
- URL:
https://functions.<domain> - JavaScript/TypeScript functions
-
MLflow - ML experiment tracking
- Port: 5005
- URL:
https://mlflow.<domain> - Model registry included
-
Mail Service (Provider-based)
- MailPit (development) - Ports: 1025 (SMTP), 8025 (UI)
- SMTP (production) - Various providers
- SendGrid/SES/etc - API-based providers
- URL:
https://mail.<domain>(when UI available)
-
Search Service (Provider-based)
- MeiliSearch - Port: 7700
- Typesense - Alternative option
- Sonic - Lightweight option
- URL:
https://search.<domain>
IMPORTANT: If you need additional functionality like:
- BullMQ Dashboard → Implement as CS_N custom service
- Webhook processing → Implement as CS_N custom service
- Additional APIs → Implement as CS_N custom service
- Database admin tools → Use nself-admin or implement as CS_N
- CMS platforms → Implement as CS_N custom service
DO NOT add these as built-in services. They must be custom services.
Complete observability stack that can be enabled with MONITORING_ENABLED=true:
-
Prometheus - Metrics database
- Port: 9090
- URL:
https://prometheus.<domain>
-
Grafana - Visualization & dashboards
- Port: 3006
- URL:
https://grafana.<domain>
-
Loki - Log aggregation
- Port: 3100
- Internal only
-
Promtail - Log shipping agent
- Port: 9080
- Internal only
-
Tempo - Distributed tracing
- Port: 3200
- Internal only
-
Alertmanager - Alert routing
- Port: 9093
- URL:
https://alertmanager.<domain>
-
cAdvisor - Container metrics
- Port: 8080
- Metrics:
:8080/metrics
-
Node Exporter - System metrics
- Port: 9100
- Metrics:
:9100/metrics
-
Postgres Exporter - PostgreSQL metrics
- Port: 9187
- Metrics:
:9187/metrics
-
Redis Exporter - Redis metrics
- Port: 9121
- Metrics:
:9121/metrics
You can define up to 10 custom services using templates:
- CS_1 through CS_10
- 40+ templates available
- Languages: JavaScript, TypeScript, Python, Go, Rust, Ruby, PHP, Java, C#, Elixir
- Frameworks: Express, Fastify, NestJS, FastAPI, Flask, Django, Gin, Fiber, Echo
The demo uses these custom services:
-
CS_1: express_api - Express.js REST API
- Template: express-js
- Port: 8001
- Route:
express-api
-
CS_2: bullmq_worker - BullMQ job worker
- Template: bullmq-js
- Port: 8002
- No public route (internal)
-
CS_3: go_grpc - Go gRPC service
- Template: grpc
- Port: 8003
- Route:
grpc-api
-
CS_4: python_api - Python FastAPI service
- Template: fastapi
- Port: 8004
- Route:
ml-api
Frontend applications run outside Docker and connect via nginx routing:
- FRONTEND_APP_1 through FRONTEND_APP_10
- Frameworks: Next.js, React, Vue, Angular, Svelte
- Remote schemas for GraphQL integration
-
Frontend App 1
- System Name: app1
- Port: 3000
- Route:
https://app1.<domain> - Framework: Next.js
-
Frontend App 2
- System Name: app2
- Port: 3001
- Route:
https://app2.<domain> - Framework: Next.js
- Required: 4
- Optional: 2 (Redis, MailPit)
- Total: 6 services
- Required: 4
- Optional: 4 (Redis, MinIO, Mail, Search)
- Total: 8 services
- Required: 4
- Optional: 5-6 (Redis, MinIO, Functions, Mail, Search, nself Admin)
- Monitoring: 10
- Custom: 2-4
- Total: 21-24 services
- Required: 4
- Optional: 7 (all optional services enabled)
- Monitoring: 10
- Custom: 4
- Frontend: 2 (external)
- Total: 25 services + 2 frontend apps
- PostgreSQL: 5432
- Redis: 6379
- Hasura: 8080
- Auth: 4000
- MinIO: 9000-9001
- Custom Services: 8001-8010
- Frontend Apps: 3000-3009
- nself Admin: 3021
- Monitoring: 9090-9199, 3100-3200
- Search: 7700-7799
- ML Services: 5000-5099
# View all configured services
nself status
# View all service URLs
nself urls
# Check for route conflicts
nself urls --check-conflicts
# View service logs
nself logs <service-name>
# Scale a service
docker compose scale <service>=<count>-
POSTGRES_*- PostgreSQL configuration -
HASURA_*- Hasura configuration -
AUTH_*- Authentication service -
NGINX_*- Nginx configuration -
CS_*- Custom services (CS_1 through CS_10) -
FRONTEND_APP_*- Frontend applications -
*_ENABLED- Service enable flags -
*_PORT- Service ports -
*_ROUTE- Service routes
ɳSelf CLI v1.0.9. MIT licensed. Docs CC BY 4.0.
GitHub · Issues · Discussions · nself.org · nself.org/docs
Getting Started
Commands
- Commands, Overview
- Lifecycle: cmd-init · cmd-build · cmd-start · cmd-stop · cmd-restart · cmd-dev
- Monitoring: cmd-status · cmd-logs · cmd-health · cmd-urls · cmd-doctor · cmd-monitor · cmd-alerts · cmd-sentry · cmd-watchdog
- Data: cmd-db · cmd-backup · cmd-dr · cmd-queue · cmd-webhooks
- Config: cmd-config · cmd-service · cmd-env · cmd-promote
- Networking: cmd-ssl · cmd-trust · cmd-dns-setup
- Security: cmd-access · cmd-security · cmd-secrets
- Tenancy: cmd-tenant · cmd-billing
- Plugins: cmd-plugin · cmd-license · cmd-dogfood (extracted, CLI-R11) · cmd-k8s (extracted, CLI-R11) · cmd-encryption (extracted, CLI-R11) · cmd-waf (extracted, CLI-R11) · cmd-federation (extracted, CLI-R11) · cmd-mail (extracted, CLI-R11) · cmd-dlq (extracted, CLI-R11)
- AI: cmd-ai · cmd-claw · cmd-model
- Templates: cmd-template
- Utilities: cmd-exec · cmd-clean · cmd-reset · cmd-update · cmd-upgrade · cmd-version · cmd-admin · cmd-migrate · cmd-migrate-firebase · cmd-migrate-supabase · cmd-completion
Features
- Features, Overview
- Feature-Auth
- Feature-Storage
- Feature-Search
- Feature-Functions
- Feature-Email
- Feature-Monitoring
- Feature-Plugins
- Feature-nClaw, AI Assistant
- Feature-nChat, Messaging
- Feature-nTV, Media Player
- Feature-nFamily, Family Social
- Feature-nCloud, Managed Hosting
- Feature-Memory-Rooms, Knowledge Organization
- Feature-Agent-Dashboard, Agent Metrics
- Feature-Image-Generation, AI Image Generation
Configuration
- Configuration, Overview
- Config-Env-Vars
- Config-Postgres
- Config-Hasura
- Config-Auth
- Config-Nginx
- Config-Optional-Services
- Config-Custom-Services
- Config-System
Plugins (87 + 10 monitoring)
Free (25)
- plugin-backup
- plugin-content-acquisition
- plugin-content-progress
- plugin-cron
- plugin-donorbox
- plugin-feature-flags
- plugin-github
- plugin-github-runner
- plugin-invitations
- plugin-jobs
- plugin-link-preview
- plugin-mdns
- plugin-mlflow
- plugin-monitoring
- plugin-notifications
- plugin-notify
- plugin-paypal
- plugin-search
- plugin-shopify
- plugin-stripe
- plugin-subtitle-manager
- plugin-tokens
- plugin-torrent-manager
- plugin-vpn
- plugin-webhooks
Pro (62)
- plugin-access-controls
- plugin-activity-feed
- plugin-admin-api
- plugin-nself-ai-gateway
- plugin-nself-ai-mcp
- plugin-nself-ai-mcp
- plugin-analytics
- plugin-auth
- plugin-backup-pro
- plugin-bots
- plugin-browser
- plugin-calendar
- plugin-cdn
- plugin-chat
- plugin-claw
- plugin-claw-budget
- plugin-claw-news
- plugin-claw-web
- plugin-cloudflare
- plugin-cms
- plugin-compliance
- plugin-cron-pro
- plugin-ddns
- plugin-devices
- plugin-documents
- plugin-donorbox-pro
- plugin-entitlements
- plugin-epg
- plugin-file-processing
- plugin-game-metadata
- plugin-geocoding
- plugin-geolocation
- plugin-google
- plugin-home
- plugin-idme
- plugin-knowledge-base
- plugin-linkedin
- plugin-livekit
- plugin-media-processing
- plugin-meetings
- plugin-moderation
- plugin-mux
- plugin-notify-pro
- plugin-object-storage
- plugin-observability
- plugin-paypal-pro
- plugin-photos
- plugin-podcast
- plugin-post
- plugin-realtime
- plugin-recording
- plugin-retro-gaming
- plugin-rom-discovery
- plugin-shopify-pro
- plugin-social
- plugin-sports
- plugin-stream-gateway
- plugin-streaming
- plugin-stripe-pro
- plugin-support
- plugin-tmdb
- plugin-voice
- plugin-web3
- plugin-workflows
Planned (26)
plugin-auditplugin-blogplugin-checkoutplugin-commerceplugin-drmplugin-exportplugin-flowplugin-importplugin-ldapplugin-mailgunplugin-mediaplugin-oauth-providersplugin-pagesplugin-postmarkplugin-rate-limitplugin-reportsplugin-samlplugin-schedulerplugin-sendgridplugin-ssoplugin-subscriptionplugin-thumbplugin-transcoderplugin-twilioplugin-wafplugin-watermark
Guides
- Guide-Production-Deployment
- Guide-SSL-Setup
- Guide-Multi-Tenancy
- Guide-Security-Hardening
- Guide-Monitoring-Setup
- Guide-Backup-Restore
- Guide-Custom-Services
- Guide-Migration-from-v1
Architecture
Reference
- API-Reference
- error-codes, Error Codes
Licensing
Security
Brand
Operations
- operations/release-cascade, Release Cascade
- operations/self-healing, Self-Healing Schema
- operations/redis-tuning, Redis Pool Tuning
- operations/meilisearch-warmup, MeiliSearch Warm-Up
- operations/jwt-rotation, JWT Key Rotation
- operations/windows-wsl2-setup, Windows / WSL2 Setup
- operations/gemini-oauth-reauth, Gemini OAuth Reauth
Contributing
Admin
- USER-ACTION-QUEUE, Pending Admin Actions
All commands (52)
- A: cmd-access · cmd-account · cmd-admin
- B: cmd-backup · cmd-build · cmd-bundle
- C: cmd-ci · cmd-clean · cmd-completion · cmd-config
- D: cmd-db · cmd-deploy · cmd-dev · cmd-doctor
- E: cmd-env · cmd-exec
- F: cmd-functions
- G: cmd-generate
- H: cmd-health · cmd-help-topics
- I: cmd-init · cmd-install
- L: cmd-license · cmd-login · cmd-logout · cmd-logs
- M: cmd-man · cmd-mcp · cmd-migrate
- O: cmd-oauth · cmd-ops
- P: cmd-plugin · cmd-promote
- R: cmd-remove · cmd-reset · cmd-restart · cmd-runner
- S: cmd-secrets · cmd-security · cmd-self-heal · cmd-server · cmd-service · cmd-start · cmd-status · cmd-stop
- T: cmd-telemetry · cmd-template · cmd-trust
- U: cmd-update · cmd-urls
- V: cmd-verify-sbom · cmd-version