blob: dbedbcb1764ba4800ae53d3344c6e90dee433b83 [file] [log] [blame]
Matteo Scandolo82d64ac2017-01-13 09:49:35 -08001tosca_definitions_version: tosca_simple_yaml_1_0
2
3description: Onboard the exampleservice
4
5imports:
6 - custom_types/xos.yaml
7
8topology_template:
9 node_templates:
10
11 # API Gateway
12 xos-rest-gateway:
13 type: tosca.nodes.Component
14 properties:
15 name: xos-rest-gateway
16 image: xosproject/xos-rest-gw
17 command: npm start -- --config gateway-config.yml
18 ports: 3000:3000
19
20 # API Gateway config file
21 /var/www/src/config/gateway-config.yml:
22 type: tosca.nodes.ComponentVolume
23 properties:
24 host_path: { path_join: [ SELF, CONFIG_DIR, ./../common/gateway-config.yml, ENV_VAR ] }
25 read_only: false
26 requirements:
27 - xos:
28 node: xos-rest-gateway
29 relationship: tosca.relationships.VolumeOfComponent
30
31 gw-to-xos:
32 type: tosca.nodes.ComponentLink
33 properties:
34 container: xos_ui
35 alias: xos
36 kind: internal
37 requirements:
38 - xos:
39 node: xos-rest-gateway
40 relationship: tosca.relationships.LinkOfComponent
41
42 gw-to-redis:
43 type: tosca.nodes.ComponentLink
44 properties:
45 container: metronetworkbs_xos_redis_1
46 alias: redis
47 kind: external
48 requirements:
49 - xos:
50 node: xos-rest-gateway
51 relationship: tosca.relationships.LinkOfComponent