Skip to content

DefangSamples/sample-huginn-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Huginn

1-click-deploy

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.

Prerequisites

  1. Download Defang CLI
  2. Have a managed database service configured and ready, such as Neon PostgreSQL
  3. (Optional) If you are using Defang BYOC authenticate with your cloud provider account
  4. (Optional for local development) Docker CLI

Development

To run the application locally, you can use the following command:

docker compose -f ./compose.yaml -f ./compose.dev.yaml up

This will start the Postgres container and the Huginn container. Huginn will be available at http://localhost:3000 with the username admin and password password.

Configuration

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.

DATABASE_NAME

The name of the database.

defang config set DATABASE_NAME

DATABASE_USERNAME

The username used with the database.

defang config set DATABASE_USERNAME

DATABASE_PASSWORD

The password used with the database.

defang config set DATABASE_PASSWORD

DATABASE_HOST

The host of the database.

defang config set DATABASE_HOST

Deployment

Note

Download Defang CLI

Defang Playground

Deploy your application to the Defang Playground by opening up your terminal and typing:

defang compose up

BYOC (AWS)

If you want to deploy to your own cloud account, you can use Defang BYOC:

  1. Authenticate your AWS account, and check that you have properly set your environment variables like AWS_PROFILE, AWS_REGION, AWS_ACCESS_KEY_ID, and AWS_SECRET_ACCESS_KEY.
  2. 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5