From abe2aeceab858d6ad3a838ffe2970a0e9e2a4606 Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Sat, 20 Jul 2024 16:20:13 -0500 Subject: Initial commit --- templates/huginn-compose.yml.j2 | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 templates/huginn-compose.yml.j2 (limited to 'templates/huginn-compose.yml.j2') diff --git a/templates/huginn-compose.yml.j2 b/templates/huginn-compose.yml.j2 new file mode 100644 index 0000000..9f66b64 --- /dev/null +++ b/templates/huginn-compose.yml.j2 @@ -0,0 +1,40 @@ +services: + huginn_postgres: + image: postgres:9.5 + restart: always + environment: +{% for key, value in huginn_env.items() %} + - {{ key }}={{ value }} +{% endfor %} + + volumes: + - ./data/huginn-db:/var/lib/postgresql/data + + huginn_web: + image: ghcr.io/huginn/huginn-single-process + restart: always + environment: +{% for key, value in huginn_env.items() %} + - {{ key }}={{ value }} +{% endfor %} + + depends_on: + - huginn_postgres + labels: +{% with router_name="huginn", host_prefix="huginn", container_port="3000" %} +{% include "util/traefik_labels.txt.j2" %} +{% endwith %} + + huginn_threaded: + image: ghcr.io/huginn/huginn-single-process + command: /scripts/init bin/threaded.rb + restart: always + environment: +{% for key, value in huginn_env.items() %} + - {{ key }}={{ value }} +{% endfor %} + + depends_on: + - huginn_postgres + - huginn_web + -- cgit v1.2.3