Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
qtrinh2 committed Sep 12, 2024
1 parent 1d4216c commit 4a28a78
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions django/docker-compose.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 %}

Expand All @@ -42,7 +43,7 @@ services:
db:
condition: service_healthy

{% set service = 'db' %}
{%- set service = 'db' -%}
db:
image: postgres:12
restart: always
Expand All @@ -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 %}

Expand Down

0 comments on commit 4a28a78

Please sign in to comment.