1 tosca_definitions_version: tosca_simple_yaml_1_0
4 TOSCA simple profile with wordpress, web server and mysql on the same server.
7 template_name: compute-1
8 template_author: TOSCA Simple Profile in YAML
9 template_version: '1.0'
12 - ../non-normative-types.yaml
14 # Repositories to retrieve code artifacts from
18 docker_hub: https://registry.hub.docker.com/
25 description: The host port that maps to port 80 of the WordPress container.
28 description: Root password for MySQL.
32 # The MYSQL container based on official MySQL image in Docker hub
35 type: tosca.nodes.Container.Application.Docker
36 # ARIA NOTE: moved to a requirement in the node type
38 # # This is a capability that would mimic the Docker –link feature
39 # database_link: tosca.capabilities.Docker.Link
43 type: tosca.artifacts.Deployment.Image.Container.Docker
44 repository: docker_hub
48 implementation: my_image
50 db_root_password: { get_input: db_root_pwd }
52 # The WordPress container based on official WordPress image in Docker hub
55 type: tosca.nodes.Container.Application.Docker
57 - database_link: mysql_container
61 type: tosca.artifacts.Deployment.Image.Container.Docker
62 repository: docker_hub
66 implementation: my_image
68 host_port: { get_input: wp_host_port }