Docker Infrastructure & Deployment
Relevant source files
The following files were used as context for generating this wiki page:
superglue utilizes Docker to provide a containerized environment for building, running, and managing deterministic integration workflows. The infrastructure consists of a web dashboard, a REST API server, and supporting services such as PostgreSQL and Minio.
The project supports multiple deployment models, including all-in-one containers for local development and specialized server-only containers for production API environments. Deployment is managed via standard Docker commands and Docker Compose profiles to handle varying infrastructure requirements.
Sources: docker/DOCKER.md:1-25, packages/web/src/lib/agent/skills/content/superglue-concepts.md:46-52
Container Architecture
The superglue deployment is split into two primary functional layers: the Web Dashboard and the API Server. Developers can choose to run both in a single container or isolate the API for lighter resource usage.
Service Ports
The following ports are exposed by the superglue containers:
| Port | Service | Description |
|---|---|---|
| 3001 | Web Dashboard | The Next.js based user interface for managing tools and systems. |
| 3002 | REST API | The core engine for executing tools and managing data. |
| 3000 | GraphQL | Mentioned as a secondary port for specific data queries. |
Sources: docker/DOCKER.md:27-31, CLAUDE.md:11
Deployment Strategies
The diagram shows the modular nature of the superglue deployment, allowing users to bundle the UI and API or separate them, while optionally including required infrastructure like databases and object storage.
Sources: docker/DOCKER.md:5-25
Build and Runtime Configuration
Docker Build Commands
Containers are built using specific Dockerfiles located in the docker/ directory.
- All-in-One Build:
docker build -t superglue:latest -f docker/Dockerfile . - Server-Only Build:
docker build -t superglue-server:latest -f docker/Dockerfile.server .
Sources: docker/DOCKER.md:16-24
Docker Compose Profiles
The project uses Docker Compose profiles to manage external dependencies.
| Command | Services Started |
|---|---|
docker compose up | superglue application services only. Requires external PostgreSQL. |
docker compose --profile infra up | superglue application + PostgreSQL + Minio. |
docker compose --profile all up | Equivalent to the infra profile. |
Sources: docker/DOCKER.md:33-38
Deployment Environments
superglue distinguishes between dev (development/sandbox) and prod (production) environments. This distinction is primarily used to manage different sets of credentials and base URLs for external systems.
Environment-Specific Logic
- Immutability: The environment type is set during system creation and cannot be changed later.
- Linking: Systems with the same ID but different environment tags are automatically linked. Development systems inherit documentation from their production counterparts.
- Secure Gateway: For systems behind firewalls, a "Private System" option using a Secure Gateway/Tunnel is required. This involves a
tunnelIdandtargetNameto bridge local network access.
Sources: packages/web/src/lib/agent/skills/content/systems-handling.md:89-112, packages/web/src/components/systems/onprem/OnPremWizard.tsx:64-79
Execution Workflows
superglue supports several runtime models for executing tools once deployed.
The sequence diagram illustrates the flow of an API-triggered tool execution through the superglue infrastructure.
Sources: packages/web/src/lib/agent/agent-prompts.ts:167-172, packages/web/src/lib/agent/skills/content/superglue-concepts.md:15-32
Deployment Patterns
- API + SDK: Tools run inside application code via REST or SDK.
- Scheduler: Recurring runs managed via the superglue web UI.
- MCP Deployment: Exposes tools as functions to LLM agents (e.g., Claude Desktop, Cursor).
- CLI Deployment: Used for on-the-fly execution and management via
@superglue/cli.
Sources: packages/web/src/lib/agent/skills/content/superglue-concepts.md:46-130
Summary
The superglue Docker infrastructure provides a flexible deployment framework supporting both monolithic and service-oriented architectures. By utilizing Docker Compose profiles, the system can either integrate with existing enterprise databases or provision its own infrastructure (Postgres and Minio). The separation of dev and prod environments, alongside Secure Gateway tunneling for on-prem systems, ensures robust deployment across various networking environments.
Sources: docker/DOCKER.md:5-38, packages/web/src/lib/agent/skills/content/systems-handling.md:89-112