diff --git a/defaults/main.yml b/defaults/main.yml index fcef1f0..cc131ab 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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 diff --git a/templates/services/droneci-compose.yml.j2 b/templates/services/droneci-compose.yml.j2 index 47bb617..404ecdc 100644 --- a/templates/services/droneci-compose.yml.j2 +++ b/templates/services/droneci-compose.yml.j2 @@ -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: