From 4a28a787aa87616864f74ff07d03d44849c61e60 Mon Sep 17 00:00:00 2001 From: qtrinh2 Date: Thu, 12 Sep 2024 16:56:26 -0400 Subject: [PATCH] debug --- django/docker-compose.yml.j2 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/django/docker-compose.yml.j2 b/django/docker-compose.yml.j2 index f371fd9..e178605 100644 --- a/django/docker-compose.yml.j2 +++ b/django/docker-compose.yml.j2 @@ -3,7 +3,7 @@ name: {{ compose_stack_name }} services: - {% set service = 'app' %} + {%- set service = 'app' -%} app: image: ghcr.io/{{ template.git.package.image_name }}:{{ template.git.package.tag }} restart: always @@ -30,6 +30,7 @@ services: {% if template.volumes is defined %} {% set vols = (template.volumes | selectattr('service', 'eq', service)) %} {% if vols is iterable and vols | length > 0 %} + volumes: {% for vol in vols %} @@ -42,7 +43,7 @@ services: db: condition: service_healthy - {% set service = 'db' %} + {%- set service = 'db' -%} db: image: postgres:12 restart: always @@ -54,6 +55,7 @@ services: {% if template.volumes is defined %} {% set vols = (template.volumes | selectattr('service', 'eq', service)) %} {% if vols is iterable and vols | length > 0 %} + volumes: {% for vol in vols %}