2025-10-28 22:49:08 -04:00
|
|
|
services:
|
|
|
|
|
# Redis cache service on custom port 6380 (instead of default 6379)
|
|
|
|
|
redis:
|
|
|
|
|
image: redis:7-alpine
|
2025-10-28 23:08:54 -04:00
|
|
|
container_name: pulse-redis
|
2025-10-28 22:49:08 -04:00
|
|
|
restart: unless-stopped
|
|
|
|
|
ports:
|
|
|
|
|
- "6380:6379"
|
|
|
|
|
volumes:
|
|
|
|
|
- redis_data:/data
|
|
|
|
|
command: redis-server --appendonly yes
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
|
|
|
interval: 5s
|
|
|
|
|
timeout: 3s
|
|
|
|
|
retries: 5
|
|
|
|
|
|
2025-11-19 14:18:16 -05:00
|
|
|
# PostgreSQL database for Autotask sync
|
|
|
|
|
postgres:
|
|
|
|
|
image: postgres:16-alpine
|
|
|
|
|
container_name: pulse-postgres
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
ports:
|
|
|
|
|
- "5432:5432"
|
|
|
|
|
env_file:
|
|
|
|
|
- .env.local
|
|
|
|
|
environment:
|
|
|
|
|
POSTGRES_DB: ${POSTGRES_DB:-pulse_autotask}
|
|
|
|
|
POSTGRES_USER: ${POSTGRES_USER:-pulse_user}
|
|
|
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
|
|
|
|
volumes:
|
|
|
|
|
- postgres_data:/var/lib/postgresql/data
|
|
|
|
|
- ./migrations:/docker-entrypoint-initdb.d:ro
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-pulse_user} -d ${POSTGRES_DB:-pulse_autotask}"]
|
|
|
|
|
interval: 10s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
retries: 5
|
|
|
|
|
|
2025-10-28 22:49:08 -04:00
|
|
|
# Next.js application on port 3100 (instead of 3000)
|
|
|
|
|
app:
|
|
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: Dockerfile
|
2025-10-28 23:08:54 -04:00
|
|
|
container_name: pulse-app
|
2025-10-28 22:49:08 -04:00
|
|
|
restart: unless-stopped
|
|
|
|
|
ports:
|
|
|
|
|
- "3100:3100"
|
2026-02-20 10:28:15 -05:00
|
|
|
labels:
|
|
|
|
|
- "traefik.enable=true"
|
|
|
|
|
- "traefik.http.routers.pulse.rule=Host(`pulse.wulfconsulting.cloud`)"
|
|
|
|
|
- "traefik.http.routers.pulse.entrypoints=websecure"
|
|
|
|
|
- "traefik.http.routers.pulse.tls=true"
|
|
|
|
|
- "traefik.http.routers.pulse.tls.certresolver=cloudflare"
|
|
|
|
|
- "traefik.http.services.pulse.loadbalancer.server.port=3100"
|
|
|
|
|
- "traefik.docker.network=frontend"
|
|
|
|
|
networks:
|
|
|
|
|
- default
|
|
|
|
|
- frontend
|
2025-10-28 22:49:08 -04:00
|
|
|
env_file:
|
|
|
|
|
- .env.local
|
|
|
|
|
environment:
|
|
|
|
|
# Application settings
|
|
|
|
|
NODE_ENV: production
|
|
|
|
|
PORT: 3100
|
|
|
|
|
|
|
|
|
|
# Redis configuration
|
|
|
|
|
REDIS_URL: redis://redis:6379
|
|
|
|
|
|
|
|
|
|
# Autotask API Configuration
|
|
|
|
|
AUTOTASK_API_URL: ${AUTOTASK_API_URL}
|
|
|
|
|
AUTOTASK_USERNAME: ${AUTOTASK_USERNAME}
|
|
|
|
|
AUTOTASK_SECRET: ${AUTOTASK_SECRET}
|
|
|
|
|
AUTOTASK_API_INTEGRATION_CODE: ${AUTOTASK_API_INTEGRATION_CODE}
|
|
|
|
|
|
|
|
|
|
# Datto RMM API Configuration
|
|
|
|
|
DATTO_RMM_API_URL: ${DATTO_RMM_API_URL}
|
|
|
|
|
DATTO_RMM_API_KEY: ${DATTO_RMM_API_KEY}
|
|
|
|
|
DATTO_RMM_API_SECRET: ${DATTO_RMM_API_SECRET}
|
|
|
|
|
|
|
|
|
|
# Addigy API Configuration
|
|
|
|
|
ADDIGY_API_URL: ${ADDIGY_API_URL}
|
|
|
|
|
ADDIGY_API_TOKEN: ${ADDIGY_API_TOKEN}
|
|
|
|
|
ADDIGY_ORG_ID: ${ADDIGY_ORG_ID}
|
2025-11-19 14:18:16 -05:00
|
|
|
|
|
|
|
|
# Auvik API Configuration
|
|
|
|
|
AUVIK_API_URL: ${AUVIK_API_URL}
|
|
|
|
|
AUVIK_API_USER: ${AUVIK_API_USER}
|
|
|
|
|
AUVIK_API_KEY: ${AUVIK_API_KEY}
|
|
|
|
|
|
feat: add authentication, user management, and admin features
Added comprehensive authentication and authorization system:
Authentication System:
- Better Auth integration with session management
- Login/logout pages and API routes
- Middleware for route protection
- Auth utilities and client libraries
User Management:
- User list, detail, and invite pages
- User API endpoints (CRUD operations)
- Session management for users
- Profile settings page
Role-Based Access Control:
- Role management pages (list, create, edit)
- Permission system with granular controls
- Role assignment to users
- Role API endpoints
Admin Features:
- Audit log page for tracking system events
- Admin settings page
- Audit service for logging user actions
Additional Features:
- Quotes management pages and components
- SalesBldr API integration
- Email service for notifications
Configuration & Documentation:
- Updated docker-compose.yml
- MCP server configuration (mcp.json)
- CVE-2025-55182 security review documentation
- Standards guide and PRD documents
- Re-enabling authentication documentation
Database Migrations:
- 012: Auth tables (users, sessions, accounts, verifications)
- 013: Role tables (roles, permissions, role_permissions, user_roles)
- 014: Admin settings table
UI Updates:
- Updated dashboard layout
- Enhanced app layout with auth integration
2026-01-31 12:43:14 -05:00
|
|
|
# SalesBldr API Configuration
|
|
|
|
|
SALESBLDR_API_URL: ${SALESBLDR_API_URL}
|
|
|
|
|
SALESBLDR_API_KEY: ${SALESBLDR_API_KEY}
|
|
|
|
|
|
feat: Veeam VSPC backup integration - sync, compliance, UI
- Database: 7 Veeam tables + backup_type_udf column on configuration_items
- API Client: VSPC REST API v3 client with pagination, rate limiting, Bearer auth
- Sync Service: full/incremental sync for orgs, servers, repos, jobs, agent jobs, workloads
- Scheduler: veeam-incremental (30min) and veeam-full (daily 2AM) schedules
- Compliance Engine: cross-references Autotask config items vs Veeam workloads
- API Endpoints: backup-status, companies, workloads, jobs, repos, compliance, sync
- UI: Backup Status page with Overview + Contract Compliance tabs
- Navigation: added Backup Status link with HardDrive icon
- Docker: added VEEAM_VSPC_URL and VEEAM_VSPC_API_KEY env vars to compose
2026-02-11 21:04:28 -05:00
|
|
|
# Veeam VSPC Configuration
|
|
|
|
|
VEEAM_VSPC_URL: ${VEEAM_VSPC_URL}
|
|
|
|
|
VEEAM_VSPC_API_KEY: ${VEEAM_VSPC_API_KEY}
|
|
|
|
|
|
2026-02-20 10:28:15 -05:00
|
|
|
# Webhook Configuration
|
|
|
|
|
WEBHOOK_BASE_URL: ${WEBHOOK_BASE_URL:-https://pulse.wulfconsulting.cloud}
|
|
|
|
|
AUTOTASK_WEBHOOK_SECRET: ${AUTOTASK_WEBHOOK_SECRET}
|
|
|
|
|
|
2025-11-19 14:18:16 -05:00
|
|
|
# PostgreSQL Configuration
|
|
|
|
|
POSTGRES_HOST: postgres
|
|
|
|
|
POSTGRES_PORT: 5432
|
|
|
|
|
POSTGRES_DB: ${POSTGRES_DB:-pulse_autotask}
|
|
|
|
|
POSTGRES_USER: ${POSTGRES_USER:-pulse_user}
|
|
|
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-your_secure_password_here_change_in_production}
|
|
|
|
|
DATABASE_URL: postgresql://${POSTGRES_USER:-pulse_user}:${POSTGRES_PASSWORD:-your_secure_password_here_change_in_production}@postgres:5432/${POSTGRES_DB:-pulse_autotask}
|
2025-10-28 22:49:08 -04:00
|
|
|
depends_on:
|
|
|
|
|
redis:
|
|
|
|
|
condition: service_healthy
|
2025-11-19 14:18:16 -05:00
|
|
|
postgres:
|
|
|
|
|
condition: service_healthy
|
2025-10-28 22:49:08 -04:00
|
|
|
volumes:
|
|
|
|
|
# Mount .env.local for development (remove in production)
|
|
|
|
|
- ./.env.local:/app/.env.local:ro
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
redis_data:
|
|
|
|
|
driver: local
|
2025-11-19 14:18:16 -05:00
|
|
|
postgres_data:
|
|
|
|
|
driver: local
|
2025-10-28 22:49:08 -04:00
|
|
|
|
|
|
|
|
networks:
|
|
|
|
|
default:
|
2025-10-28 23:08:54 -04:00
|
|
|
name: pulse-network
|
2026-02-20 10:28:15 -05:00
|
|
|
frontend:
|
|
|
|
|
external: true
|