From f03ca6d168110d91e5c51a93a14b66197e4bfe84 Mon Sep 17 00:00:00 2001 From: Laur Ivan Date: Sun, 30 Apr 2023 13:34:22 +0200 Subject: [PATCH] Fix docker-compose template. --- .../templates/docker-compose.yml.j2 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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