fix volumes
diff --git a/xos/synchronizers/onboarding/templates/docker-compose.yml.j2 b/xos/synchronizers/onboarding/templates/docker-compose.yml.j2
index c444427..fa05397 100644
--- a/xos/synchronizers/onboarding/templates/docker-compose.yml.j2
+++ b/xos/synchronizers/onboarding/templates/docker-compose.yml.j2
@@ -19,12 +19,12 @@
{%- endfor %}
{%- endif %}
{%- if container.volumes %}
-{%- for volume in container.volumes %}
volumes:
+{%- for volume in container.volumes %}
{%- if volume.read_only %}
- - {{ volume.host_path }}:{ volume.container_path }}:ro
+ - {{ volume.host_path }}:{{ volume.container_path }}:ro
{%- else %}
- - {{ volume.host_path }}:{ volume.container_path }}
+ - {{ volume.host_path }}:{{ volume.container_path }}
{%- endif %}
{%- endfor %}
{%- endif %}
diff --git a/xos/synchronizers/onboarding/xosbuilder.py b/xos/synchronizers/onboarding/xosbuilder.py
index da2c6fd..8d00c7f 100644
--- a/xos/synchronizers/onboarding/xosbuilder.py
+++ b/xos/synchronizers/onboarding/xosbuilder.py
@@ -167,7 +167,11 @@
def create_docker_compose(self):
xos = XOS.objects.all()[0]
- volume_list = [] # FINISH ME
+ volume_list = []
+ for volume in xos.volumes.all():
+ volume_list.append({"host_path": volume.host_path,
+ "container_path": volume.container_path,
+ "read_only": volume.read_only})
containers = {}