minor fixes

This commit is contained in:
Marco Lettere 2021-06-01 10:10:26 +02:00
parent fafd89a278
commit 139043faa2
5 changed files with 8 additions and 4 deletions

View File

@ -1,7 +1,8 @@
--- ---
conductor_service: "conductor-server-{{ infrastructure }}" conductor_service: "conductor-server-{{ infrastructure }}"
conductor_ui_service: "conductor-ui-{{ infrastructure }}" conductor_ui_service: "conductor-ui-{{ infrastructure }}"
conductor_service_url: "http://{{ conductor_service }}:8080/api" conductor_service_url: "http://{{ conductor_service }}:8080/api/"
conductor_service_health_url: "http://{{ conductor_service }}:8080/health"
target_path: "/tmp/conductor_stack_{{ infrastructure }}" target_path: "/tmp/conductor_stack_{{ infrastructure }}"
conductor_network: conductor-network conductor_network: conductor-network
conductor_db: postgres conductor_db: postgres

View File

@ -29,8 +29,10 @@ services:
{{ conductor_ui_service }}: {{ conductor_ui_service }}:
environment: environment:
- WF_SERVER="{{ conductor_service_url }}" - WF_SERVER={{ conductor_service_url }}
{% if conductor_auth is defined %}
- AUTH_CONFIG_PATH=/app/config/auth.config - AUTH_CONFIG_PATH=/app/config/auth.config
{% endif %}
image: "{{ conductor_ui_image }}" image: "{{ conductor_ui_image }}"
networks: networks:
- {{ conductor_network }} - {{ conductor_network }}

View File

@ -15,6 +15,7 @@ server {
server_name conductor-server; server_name conductor-server;
location / { location / {
proxy_set_header Host $host;
proxy_pass http://_conductor-server; proxy_pass http://_conductor-server;
} }

View File

@ -1,5 +1,4 @@
--- ---
conductor_workers_server: "{{ conductor_service_url }}"
conductor_workers: [ { service: 'base', image: 'nubisware/nubisware-conductor-worker-py-base', replicas: 2, threads: 1, pollrate: 1 }] conductor_workers: [ { service: 'base', image: 'nubisware/nubisware-conductor-worker-py-base', replicas: 2, threads: 1, pollrate: 1 }]

View File

@ -4,7 +4,8 @@ services:
{% for workers in conductor_workers %} {% for workers in conductor_workers %}
{{ workers.service }}: {{ workers.service }}:
environment: environment:
CONDUCTOR_SERVER: {{ conductor_workers_server }} CONDUCTOR_SERVER: {{ conductor_service_url }}
CONDUCTOR_HEALTH: {{ conductor_service_health_url }}
configs: configs:
- source: {{workers.service}}-config - source: {{workers.service}}-config
target: /app/config.cfg target: /app/config.cfg