diff options
Diffstat (limited to 'templates/huginn-compose.yml.j2')
-rw-r--r-- | templates/huginn-compose.yml.j2 | 40 |
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 + |