Skip to content

Azure deploy#10

Open
PCBZ wants to merge 3 commits intomainfrom
Azure_Deploy
Open

Azure deploy#10
PCBZ wants to merge 3 commits intomainfrom
Azure_Deploy

Conversation

@PCBZ
Copy link
Copy Markdown
Owner

@PCBZ PCBZ commented Apr 20, 2026

This pull request introduces a new Azure deployment setup for OpenClaw, enabling efficient deployment and automated management of the service on Azure Container Instances (ACI) using Terraform, Docker Compose, and Azure Functions. The changes add local development support, detailed deployment documentation, and serverless automation for cost-saving (auto-stop/start of containers). The most important changes are grouped below:

Deployment Automation & Infrastructure

  • Added a complete docker-compose.yml for local testing of OpenClaw, including gateway and CLI services, persistent volumes, environment variable mapping, and healthchecks.
  • Added a .dockerignore file to optimize Docker builds by excluding unnecessary files and directories.

Documentation & Environment Setup

  • Introduced a comprehensive README.md in terraform/azure with step-by-step instructions for local testing, Azure authentication, API key management, resource configuration, deployment, troubleshooting, and cost considerations.
  • Added .envrc for environment variable management with direnv, simplifying the process of exporting secrets for Terraform and Docker Compose.

Serverless Cost Control (Azure Functions)

  • Implemented two Azure Functions:
    • auto-stop: Timer-triggered function that checks if the ACI is idle and stops it to save costs, with configurable idle timeout and robust logging. [1] [2]
    • webhook: HTTP-triggered function that starts the ACI on incoming Telegram/Slack webhooks and forwards messages, ensuring the service is only running when needed. [1] [2]
  • Added supporting configuration and requirements for Azure Functions, including host.json, local.settings.json, and requirements.txt. [1] [2] [3]

PCBZ added 3 commits April 19, 2026 12:32
- Create README.md for Azure ACI deployment instructions
- Add docker-compose.yml for local testing with OpenClaw
- Implement auto-stop Azure Function to manage idle ACI
- Create webhook Azure Function to handle incoming requests and manage ACI startup
- Define Terraform configuration for Azure resources including storage, container group, and function app
- Add outputs for resource information after deployment
- Include example terraform.tfvars for user configuration
- Define necessary variables for Azure deployment in variables.tf
@PCBZ PCBZ self-assigned this Apr 20, 2026
@PCBZ PCBZ added the enhancement New feature or request label Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant