mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-18 02:44:51 +03:00
🔧 updated local.yml
to include project slug in volume names
This commit is contained in:
parent
9f99400b92
commit
43019e3c01
|
@ -9,7 +9,7 @@ volumes:
|
|||
{{ cookiecutter.project_slug }}_local_mysql_data: {}
|
||||
{{ cookiecutter.project_slug }}_local_mysql_data_backups: {}
|
||||
{%- endif %}
|
||||
|
||||
|
||||
services:
|
||||
django:{% if cookiecutter.use_celery == 'y' %} &django{% endif %}
|
||||
build:
|
||||
|
@ -65,8 +65,8 @@ services:
|
|||
image: {{ cookiecutter.project_slug }}_production_mysql
|
||||
container_name: mysql
|
||||
volumes:
|
||||
- local_mysql_data:/var/lib/mysql:z
|
||||
- local_mysql_data_backups:/backups:z
|
||||
- {{ cookiecutter.project_slug }}_local_mysql_data:/var/lib/mysql:z
|
||||
- {{ cookiecutter.project_slug }}_local_mysql_data_backups:/backups:z
|
||||
env_file:
|
||||
- ./.envs/.local/.mysql
|
||||
{%- endif %}
|
||||
|
|
Loading…
Reference in New Issue
Block a user