diff --git a/templates/services/droneci-compose.yml.j2 b/templates/services/droneci-compose.yml.j2 index 5c6cde6..c39326c 100644 --- a/templates/services/droneci-compose.yml.j2 +++ b/templates/services/droneci-compose.yml.j2 @@ -14,7 +14,10 @@ services: - droneserver-data:/var/lib/drone/ {% endif %} {% if droneci_server_extra_hosts | default([]) %} - extra_hosts: {{ droneci_server_extra_hosts | wrap }} + extra_hosts: + {% for hosts in droneci_server_extra_hosts %} + - {{ host | wrap }} + {% endfor %} {% endif %} restart: {{ droneci_server_restart_policy }} environment: