install docker and docker-compose
official install steps: docker install guide docker-compose install guide.
docker-compose.yml
version: '3.5'
services:
huginn:
image: huginn/huginn
restart: always
ports:
- 3000:3000
volumes:
- /root/Git/huginn/data/mysql:/var/lib/mysql
environment:
# Email Configuration
SMTP_DOMAIN: "example.com"
SEND_EMAIL_IN_DEVELOPMENT: "true"
EMAIL_FROM_ADDRESS: "[email protected]"
SMTP_USER_NAME: "[email protected]"
SMTP_PASSWORD: ""
SMTP_SERVER: "mail.example.com"
SMTP_PORT: "465"
SMTP_AUTHENTICATION: "plain"
SMTP_ENABLE_STARTTLS_AUTO: "true"
SMTP_SSL: "true"
DOMAIN: "huginn.example.com"
sql permission error:
chown 1001:1001 /root/huginn/data/mysql
set domain and proxy to localhost:3000 with ssl
/etc/nginx/sites-enabled/huginn.example.com
# HTTP redirect
server {
listen 80;
listen [::]:80;
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name huginn.example.com;
# SSL
#ssl on;
ssl_certificate /path/to/.crt;
ssl_certificate_key /path/to/.key;
client_max_body_size 10M;
location / {
proxy_pass http://127.0.0.1:3000;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Ssl on; # Optional
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-Host $host;
}
location ~ /ghost/preview {
rewrite ^(/(.*/)?ghost/)(.*)$ $1 redirect;
}
}
docker-compose reload
docker-compose up -d
docker-compose down
Agents Standing By: Setting Up Huginn :: Gideon Wolfe
Set up this powerful software with just a few lines of docker-compose

How to deploy Huginn with docker
Deploy a huginn server with docker: 1docker run -it -p 3000:3000 -v /home/huginn/mysql-data:/var/lib/mysql huginn/huginn If following error is observed: 1bootstrap stderr | mv: bootstrap stderr |