Skip to content

Commit

Permalink
updating docker compose jinja template volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
qtrinh2 committed May 23, 2024
1 parent 02c847e commit e4975d9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docker-compose.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ services:
poetry run python3 manage.py collectstatic --no-input &&
poetry run python3 manage.py runserver 0.0.0.0:8000"
volumes:
- dj-data:/app/staticfiles
- dj-static:/app/staticfiles
- dj-media:/app/media
depends_on:
db:
condition: service_healthy
Expand All @@ -35,8 +36,11 @@ services:

# external volumes managed and defined by ansible
volumes:
dj-data:
name: "{{ template.name }}_app-vol"
dj-static:
name: "{{ template.name }}_app-static-vol"
external: true
dj-media:
name: "{{ template.name }}_app-media-vol"
external: true
pg-data:
name: "{{ template.name }}_db-vol"
Expand Down

0 comments on commit e4975d9

Please sign in to comment.