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 0199814 commit 1d4216c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions django/docker-compose.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ name: {{ compose_stack_name }}
services:

{% set service = 'app' %}
#{{ template.volumes | selectattr('service', 'eq', service) }}
app:
image: ghcr.io/{{ template.git.package.image_name }}:{{ template.git.package.tag }}
restart: always
Expand All @@ -29,7 +28,7 @@ services:
sh -c "poetry run python manage.py migrate &&
poetry run python manage.py runserver 0.0.0.0:8000"
{% if template.volumes is defined %}
{% set vols = (template.volumes | selectattr('service', 'eq', service) %}
{% set vols = (template.volumes | selectattr('service', 'eq', service)) %}
{% if vols is iterable and vols | length > 0 %}
volumes:
{% for vol in vols %}
Expand All @@ -44,7 +43,6 @@ services:
condition: service_healthy

{% set service = 'db' %}
#{{ template.volumes | selectattr('service', 'eq', service) }}
db:
image: postgres:12
restart: always
Expand All @@ -54,7 +52,7 @@ services:
- POSTGRES_PASSWORD={{ template.env.db_pass }}
- POSTGRES_HOST=db
{% if template.volumes is defined %}
{% set vols = (template.volumes | selectattr('service', 'eq', service) %}
{% 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 1d4216c

Please sign in to comment.