fix compose file

This commit is contained in:
Robert Kaussow 2019-05-10 11:09:20 +02:00
parent 0b919dccc7
commit 71b94695db

View File

@ -5,7 +5,6 @@ version: '2'
services: services:
droneserver: droneserver:
image: {{ droneci_server_image }} image: {{ droneci_server_image }}
ports: ports:
- {{ droneci_server_exposed_ip + ':' if droneci_server_exposed_ip is defined else '' }}{{ droneci_server_exposed_port }}:80 - {{ droneci_server_exposed_ip + ':' if droneci_server_exposed_ip is defined else '' }}{{ droneci_server_exposed_port }}:80
volumes: volumes:
@ -21,7 +20,6 @@ services:
- {{ '"' + host + '"' }} - {{ '"' + host + '"' }}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
restart: {{ droneci_server_restart_policy }}
environment: environment:
- DRONE_SERVER_HOST={{ droneci_host | urlsplit('hostname') }} - DRONE_SERVER_HOST={{ droneci_host | urlsplit('hostname') }}
- DRONE_SERVER_PROTO={{ droneci_host | urlsplit('scheme') }} - DRONE_SERVER_PROTO={{ droneci_host | urlsplit('scheme') }}
@ -58,9 +56,6 @@ services:
droneagent: droneagent:
image: {{ droneci_agent_image }} image: {{ droneci_agent_image }}
command: agent
restart: {{ droneci_agent_restart_policy }}
depends_on: depends_on:
- droneserver - droneserver
volumes: volumes: