Docker Deployment
Panguard provides Docker images and Compose configurations for containerized deployments. This guide covers single-container setup, full-stack Compose deployments, and production hardening.Prerequisites
Quick Start with Docker
1
Pull the Image
2
Run the Container
3
Verify
Docker Compose: Basic Setup (API + Ollama)
This configuration runs the Panguard API server with a local Ollama instance for Layer 2 AI analysis at zero cost.Docker Compose: Full Stack (Guard + Ollama + Threat Cloud)
This configuration runs the complete Panguard platform with Guard protection and local AI.Port Reference
Environment Variables
Guard Agent
API Server
Production Hardening
Docker Image Security
The production Docker image includes:- Multi-stage build — Build dependencies are not in the final image
- Non-root user — Runs as
panguard(UID 1001) - tini — Proper PID 1 signal handling and zombie reaping
- Minimal packages — Only
tiniandcurlin the final image
Required Capabilities
For Guard response actions to function inside Docker, grant these capabilities:Checklist
- Set
NODE_ENV=production(enables HSTS, disables wildcard CORS) - Generate strong secrets (
openssl rand -hex 32) - Use TLS termination (nginx/Caddy reverse proxy in front)
- Restrict network access to Manager port
- Mount secrets as env files, not inline environment variables
- Use named volumes for persistent data
- Configure log rotation for container logs
Log Locations (Inside Container)
Log Rotation
The ReportAgent handles log rotation automatically:Backup Strategy
Related
System Service
Install Guard as a native systemd/launchd service instead of Docker.
Multi-Endpoint Setup
Connect Guard agents to a centralized Manager.
Threat Cloud
Deploy Threat Cloud alongside your Guard fleet.
Architecture
Full technical architecture of the platform.