diff --git a/defaults/main.yml b/defaults/main.yml index fec7691..6c7fc2a 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -4,6 +4,8 @@ droneci_service_directory: /var/lib/docker/services/drone-ci droneci_docker_socket_path: /var/run/docker.sock droneci_host: http://localhost droneci_secret: myveryownsecret +# Path to the license key file +# droneci_license_key: # defaults to not set droneci_server_image: "drone/drone:{{ droneci_version }}" droneci_server_restart_policy: always diff --git a/templates/services/droneci-compose.yml.j2 b/templates/services/droneci-compose.yml.j2 index 79239fc..14835d3 100644 --- a/templates/services/droneci-compose.yml.j2 +++ b/templates/services/droneci-compose.yml.j2 @@ -11,6 +11,9 @@ services: {% if not droneci_postgres_enabled %} volumes: - droneserver-data:/var/lib/drone/ + {% if droneci_license_key is defined %} + - {{ droneci_license_key }}:/etc/drone.key + {% endif %} {% endif %} {% if droneci_server_extra_hosts | default([]) %} extra_hosts: