mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-19 03:14:52 +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: {}
|
||||||
{{ cookiecutter.project_slug }}_local_mysql_data_backups: {}
|
{{ cookiecutter.project_slug }}_local_mysql_data_backups: {}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
services:
|
services:
|
||||||
django:{% if cookiecutter.use_celery == 'y' %} &django{% endif %}
|
django:{% if cookiecutter.use_celery == 'y' %} &django{% endif %}
|
||||||
build:
|
build:
|
||||||
|
@ -65,8 +65,8 @@ services:
|
||||||
image: {{ cookiecutter.project_slug }}_production_mysql
|
image: {{ cookiecutter.project_slug }}_production_mysql
|
||||||
container_name: mysql
|
container_name: mysql
|
||||||
volumes:
|
volumes:
|
||||||
- local_mysql_data:/var/lib/mysql:z
|
- {{ cookiecutter.project_slug }}_local_mysql_data:/var/lib/mysql:z
|
||||||
- local_mysql_data_backups:/backups:z
|
- {{ cookiecutter.project_slug }}_local_mysql_data_backups:/backups:z
|
||||||
env_file:
|
env_file:
|
||||||
- ./.envs/.local/.mysql
|
- ./.envs/.local/.mysql
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user