This sample shows how to deploy Huginn with Defang.
Huginn is a system for building agents that perform automated tasks for you online. Huginn's Agents can monitor the web, respond to events, and act on your behalf. They propagate events along a directed graph. It's like a customizable IFTTT or Zapier on your own server, ensuring data privacy.
- Download Defang CLI
- Have a managed database service configured and ready, such as Neon PostgreSQL
- (Optional) If you are using Defang BYOC authenticate with your cloud provider account
- (Optional for local development) Docker CLI
To run the application locally, you can use the following command:
docker compose -f ./compose.yaml -f ./compose.dev.yaml upThis will start the Postgres container and the Huginn container. Huginn will be available at http://localhost:3000 with the username admin and password password.
For this sample, you will need to provide the following configuration:
Note that if you are using the 1-click deploy option, you can set these values as secrets in your GitHub repository and the action will automatically deploy them for you.
The name of the database.
defang config set DATABASE_NAMEThe username used with the database.
defang config set DATABASE_USERNAMEThe password used with the database.
defang config set DATABASE_PASSWORDThe host of the database.
defang config set DATABASE_HOSTNote
Download Defang CLI
Deploy your application to the Defang Playground by opening up your terminal and typing:
defang compose upIf you want to deploy to your own cloud account, you can use Defang BYOC:
- Authenticate your AWS account, and check that you have properly set your environment variables like
AWS_PROFILE,AWS_REGION,AWS_ACCESS_KEY_ID, andAWS_SECRET_ACCESS_KEY. - Run in a terminal that has access to your AWS environment variables:
defang --provider=aws compose up
Title: Huginn
Short Description: A system for building agents that perform automated tasks for you online.
Tags: Huginn, Agents, Automation
Languages: Dockerfile