PUBLIC ALPHABiztraak is now in public alpha. Share feedback
Biztraak
Git & CI/CD
Private GitLab Build & Deploy Pipeline Unit Tests Environment Variables Deploy Web Services Configure Web Services

Web Services Configuration

Configure your containerized web services with fine-grained control over deployment behavior, resource allocation, and operational settings in Biztraak.


Port Configuration

Container Port Configuration

Configure how your web service container exposes ports for load balancer health checks and traffic routing.

  • Default ports: 8080 (HTTP) and 443 (HTTPS) for web services
  • Custom port mapping: specify different internal ports if your app uses non-standard ports
  • Health check endpoints: configure custom health check paths for your web service
  • Load balancer integration: automatic port discovery and configuration for ECS/GKE

Port Requirements

  • HTTP traffic: typically port 8080
  • HTTPS traffic: typically port 443
  • Custom applications: specify alternative ports as needed
  • Load balancer health checks: ensure health endpoint is accessible

Environment Variables

Inject secrets and configuration at deployment time

Variable Types

  • Configuration variables: database URLs, API endpoints, feature flags
  • Secret variables: API keys, passwords, OAuth tokens
  • Runtime settings: log levels, debug modes, environment names

Variable Scoping

  • Component-specific: variables scoped to individual components
  • Environment-specific: different values for production, staging, build reviews
  • Global variables: shared across all environments

Resource Limits

Container Resource Limits

Set CPU and memory constraints for your web service containers in ECS or GKE.

  • CPU allocation: specify CPU units (vCPUs) for your web service containers
  • Memory limits: set maximum memory usage (MB/GB) for your web service
  • Resource requests: minimum resources guaranteed to your web service
  • Auto-scaling triggers: CPU and memory-based scaling policies for your web service

Resource Optimization

  • Right-sizing: match resources to actual application needs
  • Cost optimization: avoid over-provisioning resources
  • Performance tuning: optimize for your application's workload
  • Monitoring integration: track resource utilization and costs

Health Check Configuration

Web Service Health Checks

Customize health endpoints for your web service to ensure load balancer monitoring works correctly.

  • Default health checks: /health or / endpoints for your web service
  • Custom health paths: specify application-specific health endpoints (e.g., /api/health)
  • Health check intervals: configure check frequency and timeout for your web service
  • Unhealthy threshold: define when to mark your web service as unhealthy

Health Check Types

  • HTTP health checks: check HTTP endpoints for application status
  • TCP health checks: verify port connectivity
  • Application-specific: custom health check implementations
  • Dependency checks: verify database, cache, and external service connectivity

Auto-Scaling Policies

Web Service Auto-Scaling

Define auto-scaling behavior for your web service based on demand and performance metrics.

  • Target tracking policies: maintain optimal performance metrics for your web service
  • CPU-based scaling: scale your web service based on CPU utilization
  • Memory-based scaling: scale your web service based on memory usage
  • Custom metrics: scale your web service based on application-specific metrics (requests/sec, response time)

Web Service Scaling Parameters

  • Minimum capacity: minimum number of running web service instances
  • Maximum capacity: maximum number of running web service instances
  • Desired capacity: target number of running web service instances
  • Scaling cooldowns: prevent rapid scaling oscillations for your web service

Cloud Provider Selection

Choose a provider and workload combination exposed by the project configuration. See Capabilities and Availability for the current provider templates and differences.


Security Configuration

Network Security

Configure network access and security policies.

  • VPC isolation: containers run in private subnets
  • Security groups: control inbound and outbound traffic
  • Network ACLs: additional network-level security
  • Private networking: secure communication between services

Access Control

  • IAM roles: least-privilege access for all components
  • Service accounts: secure service-to-service communication
  • Secret management: encrypted storage and injection of secrets
  • Audit logging: track all configuration changes and access

Monitoring and Observability

Logging Configuration

Configure application logging and log aggregation.

  • Log levels: debug, info, warn, error configuration
  • Log formats: structured logging (JSON) or plain text
  • Log destinations: cloud logging services integration
  • Log retention: configure log storage and retention policies

Metrics and Monitoring

  • Application metrics: custom metrics and performance indicators
  • Infrastructure metrics: CPU, memory, network, and disk usage
  • Alerting: configure alerts for performance and error thresholds
  • Dashboards: real-time monitoring and visualization

Deployment Configuration

Web Service Deployment Strategies

Configure deployment behavior and rollback policies for your web service.

  • Blue/green deployments: a deployment strategy that may reduce interruption where the selected provider workflow supports parallel environments and traffic switching
  • Rollback policies: automatic rollback on web service deployment failures
  • Deployment timeouts: configure deployment timeout settings for your web service
  • Health check integration: verify web service deployment success before traffic switch

Web Service Build Configuration

  • Dockerfile detection: automatic Dockerfile discovery for your web service
  • Build context: specify build context and Dockerfile location for your web service
  • Build arguments: pass build-time variables to Docker builds for your web service
  • Multi-stage builds: optimize built container images for production web service deployment

Custom Configuration

Advanced Settings

Configure advanced deployment and operational settings.

  • Custom labels: add metadata and labels to deployments
  • Environment-specific configs: different settings per environment
  • Configuration templates: reusable configuration patterns
  • Validation rules: ensure configuration correctness

Integration Options

  • External services: integrate with third-party services
  • Webhooks: trigger external systems on deployment events
  • API integration: programmatic configuration management
  • CLI tools: command-line configuration management

Best Practices

Configuration Management

  • Version control: track configuration changes in Git
  • Environment parity: maintain consistent configurations across environments
  • Documentation: document all configuration options and decisions
  • Testing: validate configurations in non-production environments

Security Best Practices

  • Least privilege: grant minimum necessary permissions
  • Secret rotation: regularly rotate secrets and credentials
  • Audit trails: maintain logs of all configuration changes
  • Compliance: ensure configurations meet security and compliance requirements

Next steps


Web services configuration in Biztraak gives you fine-grained control over your containerized applications: customize every aspect of your web service's behavior and infrastructure.