blob: 3c8208a2dd4cca15e653e81823a8b78eaf8df5e0 [file] [log] [blame]
tosca_definitions_version: tosca_simple_yaml_1_0
description: Onboard the exampleservice
imports:
- custom_types/xos.yaml
topology_template:
node_templates:
# API Gateway
xos-ws:
type: tosca.nodes.Component
properties:
image: {{ deploy_docker_registry }}xosproject/xos-ws:{{ deploy_docker_tag }}
command: npm start -- --config gateway-config.yml
ports: 3000:3000
# API Gateway config file
/var/www/src/config/gateway-config.yml:
type: tosca.nodes.ComponentVolume
properties:
host_path: "{{ cord_profile_dir }}/gateway-config.yml"
read_only: false
requirements:
- xos:
node: xos-rest-gateway
relationship: tosca.relationships.VolumeOfComponent
gw-to-xos:
type: tosca.nodes.ComponentLink
properties:
container: xos_ui
alias: xos
kind: internal
requirements:
- xos:
node: xos-ws
relationship: tosca.relationships.LinkOfComponent
gw-to-redis:
type: tosca.nodes.ComponentLink
properties:
container: {{ cord_profile | regex_replace('\\W','') }}bs_xos_redis_1
alias: redis
kind: external
requirements:
- xos:
node: xos-ws
relationship: tosca.relationships.LinkOfComponent