{"id":16935561,"url":"https://github.com/dsander/docker-huginn-production","last_synced_at":"2026-04-18T09:38:18.657Z","repository":{"id":66500717,"uuid":"48881479","full_name":"dsander/docker-huginn-production","owner":"dsander","description":null,"archived":false,"fork":false,"pushed_at":"2016-01-01T22:05:07.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-26T01:34:32.395Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dsander.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-01T15:26:31.000Z","updated_at":"2016-01-01T15:27:17.000Z","dependencies_parsed_at":"2023-03-16T18:25:27.209Z","dependency_job_id":null,"html_url":"https://github.com/dsander/docker-huginn-production","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsander%2Fdocker-huginn-production","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsander%2Fdocker-huginn-production/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsander%2Fdocker-huginn-production/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsander%2Fdocker-huginn-production/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dsander","download_url":"https://codeload.github.com/dsander/docker-huginn-production/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244739963,"owners_count":20501992,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T20:54:49.763Z","updated_at":"2026-04-18T09:38:13.616Z","avatar_url":"https://github.com/dsander.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"Docker image for Huginn using the production environment and separate container for every process\n=================================================\n\nThis image runs a linkable [Huginn](https://github.com/cantino/huginn) instance.\n\nIt was inspired by the [official docker container for huginn](https://registry.hub.docker.com/u/cantino/huginn)\n\nThe scripts/init script generates a .env file containing the variables as passed as per normal Huginn documentation.\nThe same environment variables that would be used for Heroku PaaS deployment are used by this script.\n\nThe scripts/init script is aware of mysql and postgres linked containers through the environment variables:\n\n    MYSQL_PORT_3306_TCP_ADDR\n    MYSQL_PORT_3306_TCP_PORT\n\nand\n\n    POSTGRESQL_PORT_5432_TCP_ADDR\n    POSTGRESQL_PORT_5432_TCP_PORT\n\nIts recommended to use an image that allows you to create a database via environmental variables at docker run, like `postgresql` or `mysql`, so the db is populated when this script runs.\n\nAdditionally, the database variables may be overridden from the above as per the standard Huginn documentation:\n\n    HUGINN_DATABASE_ADAPTER #(must be either 'postgresql' or 'mysql2')\n    HUGINN_DATABASE_HOST\n    HUGINN_DATABASE_PORT\n\nThis script will run database migrations (rake db:migrate) which should be idempotent.\n\nIt will also seed the database (rake db:seed) unless this is defined:\n\n    DO_NOT_SEED\n\nThis same seeding initially defines the \"admin\" user with a default password of \"password\" as per the standard Huginn documentation.\n\nIf you do not wish to have the default 6 agents, you will want to set the above environment variable after your initially deploy, otherwise they will be added automatically the next time a container pointing at the database is spun up.\n\nThe CMD launches Huginn via the scripts/init script. This may become the ENTRYPOINT later.  It does take under a minute for Huginn to come up.  Use environmental variables that match your DB's creds to ensure it works.\n\n## Usage\n\nSimple startup using docker compose:\n\n    docker-compose up\n\nor if you like to use PostgreSQL:\n\n    docker-compose -f postgresql.yml up\n\nManual startup and linking to a MySQL container:\n\n    docker run --name huginn_mysql \\\n        -e MYSQL_DATABASE=huginn \\\n        -e MYSQL_USER=huginn \\\n        -e MYSQL_PASSWORD=somethingsecret \\\n        -e MYSQL_ROOT_PASSWORD=somethingevenmoresecret \\\n        mysql\n\n    docker run --name huginn_web \\\n        --link huginn_mysql:mysql \\\n        -p 3000:3000 \\\n        -e DATABASE_NAME=huginn \\\n        -e DATABASE_USERNAME=huginn \\\n        -e DATABASE_PASSWORD=somethingsecret \\\n        dsander/huginn-production\n\n    docker run --name huginn_threaded \\\n        --link huginn_mysql:mysql \\\n        -e DATABASE_NAME=huginn \\\n        -e DATABASE_USERNAME=huginn \\\n        -e DATABASE_PASSWORD=somethingsecret \\\n        dsander/huginn-production /scripts/init bin/threaded.rb\n\n## Environment Variables\n\nOther Huginn 12factored environment variables of note, as generated and put into the .env file as per Huginn documentation. All variables of the [.env.example](https://github.com/cantino/huginn/blob/master/.env.example) can be used to override the defaults which a read from the current `.env.example`.\n\n## Building on your own\n\nYou don't need to do this on your own, but if you really want:\n\n    docker build --rm=true --tag={yourname}/huginn .\n\n## Source\n\nThe source is [available on GitHub](https://github.com/dsander/docker-huginn-production/).\n\nPlease feel free to submit pull requests and/or fork at your leisure.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsander%2Fdocker-huginn-production","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdsander%2Fdocker-huginn-production","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsander%2Fdocker-huginn-production/lists"}