mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-18 10:54:51 +03:00
add nginx-media docker instance
This commit is contained in:
parent
009756150a
commit
88a0f4e0ec
|
@ -76,3 +76,13 @@ services:
|
|||
volumes:
|
||||
- production_postgres_data_backups:/backups:z
|
||||
{%- endif %}
|
||||
{%- if cookiecutter.use_nginx_for_serve_media_files == 'y' %}
|
||||
|
||||
nginx-media:
|
||||
image: "nginx:latest"
|
||||
depends_on:
|
||||
- django
|
||||
volumes:
|
||||
- ./{{ cookiecutter.project_slug }}/media:/usr/share/nginx/html/media:ro
|
||||
|
||||
{%- endif %}
|
Loading…
Reference in New Issue
Block a user