Running Sentinel and agents in Docker containers.
Quick Start
Run Sentinel
# Run with default configuration
# Check status
Run with Agents
# Create shared socket directory
# Run WAF agent
# Run Sentinel
Container Configuration
Environment Variables
Volume Mounts
| Mount | Purpose |
|---|---|
/etc/sentinel/sentinel.kdl | Main configuration |
/etc/sentinel/certs/ | TLS certificates |
/var/run/sentinel/ | Unix sockets for agents |
/var/log/sentinel/ | Log files (optional) |
Port Mapping
Networking
Bridge Network (Default)
# Create network
# Run containers on network
Host Network
For lowest latency (Linux only):
Connecting to Host Services
# Linux
# In sentinel.kdl
Running Agents
WAF Agent
Auth Agent
Rate Limit Agent
JavaScript Agent
Resource Limits
Memory and CPU
File Descriptors
Health Checks
Built-in Health Check
Check Health Status
# View health status
# View health logs
|
Logging
Log Drivers
# JSON file (default)
# Syslog
# Fluentd
View Logs
# Follow logs
# Last 100 lines
# With timestamps
Security
Read-Only Root Filesystem
Security Options
User Namespace
Restart Policies
# Always restart
# Restart on failure (max 3 times)
# Unless stopped manually
Configuration Reload
Using Docker Exec
# Reload configuration
# Or via admin API
Updating Configuration
# Update config file
# Reload
Debugging
Interactive Shell
# Start shell in running container
# Start new container with shell
Inspect Container
# View configuration
# View mounts
|
# View network settings
|
Debug Mode
Production Checklist
Container Configuration
- Resource limits set (memory, CPU)
- File descriptor limits increased
- Health check configured
- Restart policy set
- Logging configured
- Read-only root filesystem (if possible)
Security
- Running as non-root user
- Capabilities dropped
- No new privileges
- Secrets not in environment variables (use Docker secrets)
Networking
- Appropriate network mode selected
- Only required ports exposed
- TLS certificates mounted
Monitoring
- Metrics port exposed
- Log aggregation configured
- Health checks monitored
Next Steps
- Docker Compose - Multi-container orchestration
- Monitoring - Observability setup
- Rolling Updates - Zero-downtime deployments