|
|
|
@ -8,11 +8,6 @@ services:
|
|
|
|
|
- conductor-network
|
|
|
|
|
ports:
|
|
|
|
|
- "{{ pep_port }}:80"
|
|
|
|
|
{% if pep is defined and pep == True %}
|
|
|
|
|
volumes:
|
|
|
|
|
- "./pep.js:/etc/nginx/pep.js"
|
|
|
|
|
- "./config.js:/etc/nginx/config.js"
|
|
|
|
|
{% endif %}
|
|
|
|
|
deploy:
|
|
|
|
|
replicas: {{ pep_replicas }}
|
|
|
|
|
{% if infrastructure != 'local' %}
|
|
|
|
@ -28,6 +23,12 @@ services:
|
|
|
|
|
target: /etc/nginx/templates/default.conf.template
|
|
|
|
|
- source: nginxbaseconf
|
|
|
|
|
target: /etc/nginx/nginx.conf
|
|
|
|
|
{% if pep is defined and pep == True %}
|
|
|
|
|
- source: pep
|
|
|
|
|
target: /etc/nginx/pep.js
|
|
|
|
|
- source: pepconfig
|
|
|
|
|
target: /etc/nginx/config.js
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
|
conductor-network:
|
|
|
|
@ -37,3 +38,9 @@ configs:
|
|
|
|
|
file: ./nginx.default.conf
|
|
|
|
|
nginxbaseconf:
|
|
|
|
|
file: ./nginx.conf
|
|
|
|
|
{% if pep is defined and pep == True %}
|
|
|
|
|
pep:
|
|
|
|
|
file: ./pep.js
|
|
|
|
|
pepconfig:
|
|
|
|
|
file: ./config.js
|
|
|
|
|
{% endif %}
|
|
|
|
|