diff --git a/ansible-role-{{cookiecutter.app_name}}/templates/docker-compose.yml.j2 b/ansible-role-{{cookiecutter.app_name}}/templates/docker-compose.yml.j2 index a0cd401..96c3260 100644 --- a/ansible-role-{{cookiecutter.app_name}}/templates/docker-compose.yml.j2 +++ b/ansible-role-{{cookiecutter.app_name}}/templates/docker-compose.yml.j2 @@ -14,11 +14,13 @@ services: - {{ cookiecutter.app_name }}-net # optional volumes: - - "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_http_port {% raw %}}}{% endraw %}" + - "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_volume {% raw %}}}{% endraw %}" depends_on: - other - services +volumes: + - "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_volume {% raw %}}}{% endraw %}" networks: - {{ cookiecutter.app_name }}-net \ No newline at end of file + {{ cookiecutter.app_name }}-net: {} \ No newline at end of file