blob: a4b1062fc934882261af02c2a977fb1899c60bad [file] [log] [blame]
Matteo Scandolo76d7bcd2016-11-30 17:08:17 -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
Matteo Scandoloa317b872017-01-10 12:02:41 -080020 # API Gateway config file
Matteo Scandolo76d7bcd2016-11-30 17:08:17 -080021 /var/www/src/config/gateway-config.yml:
22 type: tosca.nodes.ComponentVolume
23 properties:
Matteo Scandoloa317b872017-01-10 12:02:41 -080024 host_path: { path_join: [ SELF, CONFIG_DIR, ./../common/gateway-config.yml, ENV_VAR ] }
Matteo Scandolo76d7bcd2016-11-30 17:08:17 -080025 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: frontendbs_xos_redis_1
46 alias: redis
47 kind: external
48 requirements:
49 - xos:
50 node: xos-rest-gateway
Matteo Scandolo76d7bcd2016-11-30 17:08:17 -080051 relationship: tosca.relationships.LinkOfComponent