aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/docker_images/templates/docker-compose-tg.yaml.j2
diff options
context:
space:
mode:
Diffstat (limited to 'fdio.infra.ansible/roles/docker_images/templates/docker-compose-tg.yaml.j2')
-rw-r--r--fdio.infra.ansible/roles/docker_images/templates/docker-compose-tg.yaml.j26
1 files changed, 5 insertions, 1 deletions
diff --git a/fdio.infra.ansible/roles/docker_images/templates/docker-compose-tg.yaml.j2 b/fdio.infra.ansible/roles/docker_images/templates/docker-compose-tg.yaml.j2
index c73e34a006..c4d53c90c2 100644
--- a/fdio.infra.ansible/roles/docker_images/templates/docker-compose-tg.yaml.j2
+++ b/fdio.infra.ansible/roles/docker_images/templates/docker-compose-tg.yaml.j2
@@ -17,12 +17,14 @@ services:
privileged: true
restart: "always"
shm_size: "4G"
+{% if docker_volumes is defined and docker_volumes|length > 0 %}
volumes:
{% for volume in docker_volumes %}
- type: "bind"
source: "{{ volume.source }}"
target: "{{ volume.target }}"
{% endfor %}
+{% endif %}
tg-1:
build:
context: "tg/"
@@ -41,9 +43,11 @@ services:
privileged: true
restart: "always"
shm_size: "4G"
+{% if docker_volumes is defined and docker_volumes|length > 0 %}
volumes:
{% for volume in docker_volumes %}
- type: "bind"
source: "{{ volume.source }}"
target: "{{ volume.target }}"
-{% endfor %} \ No newline at end of file
+{% endfor %}
+{% endif %} \ No newline at end of file