@@ -3,13 +3,16 @@ name: navi
33container_image : registry.runnable.com/runnable/{{ name }}
44container_tag : " {{ git_branch }}"
55repo : git@github.com:CodeNow/{{ name }}.git
6- hosted_ports : [ "{{ navi_port }}" ]
6+ hosted_ports : [ "{{ navi_http_port }}", "{{ navi_https_port }}" ]
77node_version : " 4.2.4"
88npm_version : " 2.8.3"
99
1010redis_ca_cert_path : /opt/ssl/{{ name }}/redis/ca.pem
11+ content_domain_certs : /opt/ssl/{{ user_content_domain }}
12+
1113container_envs : >
1214 -e API_URL={{ api_url }}
15+ -e CERT_PATH={{ content_domain_certs }}
1316 -e COOKIE_DOMAIN=.{{ user_content_domain }}
1417 -e COOKIE_SECRET={{ navi_cookie_secret }}
1518 -e DATADOG_HOST={{ datadog_host_address }}
@@ -20,10 +23,6 @@ container_envs: >
2023 -e HTTP_PORT={{ hosted_ports[0] }}
2124 -e LOG_LEVEL_STDOUT=trace
2225 -e MONGO=mongodb://{{ navi_mongo_host_address }}:{{ navi_mongo_port }}/{{ navi_mongo_database }}
23- {% if navi_new_relic_app_name is defined %} -e NEW_RELIC_APP_NAME={{ navi_new_relic_app_name }} {% endif %}
24- {% if navi_new_relic_app_name is defined %} -e NEW_RELIC_LICENSE_KEY={{ new_relic_license_key }} {% endif %}
25- {% if navi_new_relic_app_name is defined %} -e NEW_RELIC_LOG_LEVEL=fatal {% endif %}
26- {% if navi_new_relic_app_name is defined %} -e NEW_RELIC_NO_CONFIG_FILE=true {% endif %}
2726 -e NODE_ENV={{ node_env }}
2827 -e RABBITMQ_HOSTNAME={{ rabbit_host_address }}
2928 -e RABBITMQ_PASSWORD={{ rabbit_password }}
@@ -32,12 +31,18 @@ container_envs: >
3231 -e REDIS_CACERT={{ redis_ca_cert_path }}
3332 -e REDIS_IPADDRESS={{ redis_host_address }}
3433 -e REDIS_PORT={{ redis_tls_port }}
35- {% if navi_intercom_app_id is defined %} -e INTERCOM_APP_ID={{ navi_intercom_app_id }} {% endif %}
3634 {% if navi_intercom_api_key is defined %} -e INTERCOM_API_KEY={{ navi_intercom_api_key }} {% endif %}
35+ {% if navi_intercom_app_id is defined %} -e INTERCOM_APP_ID={{ navi_intercom_app_id }} {% endif %}
36+ {% if navi_new_relic_app_name is defined %} -e NEW_RELIC_APP_NAME={{ navi_new_relic_app_name }} {% endif %}
37+ {% if navi_new_relic_app_name is defined %} -e NEW_RELIC_LICENSE_KEY={{ new_relic_license_key }} {% endif %}
38+ {% if navi_new_relic_app_name is defined %} -e NEW_RELIC_LOG_LEVEL=fatal {% endif %}
39+ {% if navi_new_relic_app_name is defined %} -e NEW_RELIC_NO_CONFIG_FILE=true {% endif %}
3740
3841container_run_opts : >
3942 -h {{ name }}
4043 -d
4144 -p {{ hosted_ports[0] }}:{{ hosted_ports[0] }}
45+ -p {{ hosted_ports[1] }}:{{ hosted_ports[1] }}
4246 -v {{ redis_ca_cert_path }}:{{ redis_ca_cert_path }}
47+ -v {{ content_domain_certs }}:{{ content_domain_certs }}
4348 {{ container_envs }}
0 commit comments