allow to set exposed ip

This commit is contained in:
Robert Kaussow 2018-12-14 01:10:14 +01:00
parent 9499724a04
commit e5f792e9d2
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ droneci_secret: myveryownsecret
droneci_server_image: "drone/drone:{{ droneci_version }}"
droneci_server_restart_policy: always
droneci_server_exposed_port: 8080
droneci_server_exposed_ip: 127.0.0.1
droneci_agent_image: "drone/agent:{{ droneci_version }}"
droneci_agent_restart_policy: always

View File

@ -7,7 +7,7 @@ services:
image: {{ droneci_server_image }}
ports:
- {{ droneci_server_exposed_port }}:8000
- {{ droneci_server_exposed_ip + ':' if droneci_server_exposed_ip is defined else '' }}{{ droneci_server_exposed_port }}:8000
- 9000
{% if not droneci_postgres_enabled %}
volumes: