Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
qtrinh2 committed Sep 12, 2024
1 parent 6eb68ae commit ef7fb29
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions django/docker-compose.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ services:

- {{ vol.name }}:{{ vol.container_path }}
{% endfor %}

depends_on:
db:
condition: service_healthy
Expand All @@ -42,8 +43,10 @@ services:
- POSTGRES_HOST=db
volumes:
{% for vol in (template.volumes | selectattr('service', 'eq', 'db')) %}

- {{ vol.name }}:{{ vol.container_path }}
{% endfor %}

healthcheck:
test: ["CMD-SHELL", "pg_isready -U {{ template.env.db_user }} -d {{ template.env.db_name }}"]
interval: 2s
Expand Down

0 comments on commit ef7fb29

Please sign in to comment.