summaryrefslogtreecommitdiff
path: root/templates/huginn-compose.yml.j2
diff options
context:
space:
mode:
authorMark Powers <mark@marks.kitchen>2024-07-20 16:20:13 -0500
committerMark Powers <mark@marks.kitchen>2024-07-20 16:20:13 -0500
commitabe2aeceab858d6ad3a838ffe2970a0e9e2a4606 (patch)
tree83a9da03fbf01cbc0faf87f45b4ddd6e7344faf6 /templates/huginn-compose.yml.j2
Initial commitmain
Diffstat (limited to 'templates/huginn-compose.yml.j2')
-rw-r--r--templates/huginn-compose.yml.j240
1 files changed, 40 insertions, 0 deletions
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
+