| { |
| "name": "httpd-service-no-dns", |
| "version": "1.0.0", |
| "lifetime": "3600", |
| "components": [ |
| { |
| "name": "httpd", |
| "number_of_containers": 2, |
| "artifact": { |
| "id": "centos/httpd-24-centos7:latest", |
| "type": "DOCKER" |
| }, |
| "launch_command": "/usr/bin/run-httpd", |
| "resource": { |
| "cpus": 1, |
| "memory": "1024" |
| }, |
| "readiness_check": { |
| "type": "HTTP", |
| "properties": { |
| "url": "http://${THIS_HOST}:8080" |
| } |
| }, |
| "configuration": { |
| "files": [ |
| { |
| "type": "TEMPLATE", |
| "dest_file": "/var/www/html/index.html", |
| "properties": { |
| "content": "<html><header><title>Title</title></header><body>Hello from ${COMPONENT_INSTANCE_NAME}!</body></html>" |
| } |
| } |
| ] |
| } |
| }, |
| { |
| "name": "httpd-proxy", |
| "number_of_containers": 1, |
| "dependencies": [ "httpd" ], |
| "artifact": { |
| "id": "centos/httpd-24-centos7:latest", |
| "type": "DOCKER" |
| }, |
| "launch_command": "/usr/bin/run-httpd", |
| "resource": { |
| "cpus": 1, |
| "memory": "1024" |
| }, |
| "configuration": { |
| "files": [ |
| { |
| "type": "TEMPLATE", |
| "dest_file": "/etc/httpd/conf.d/httpd-proxy.conf", |
| "src_file": "httpd-proxy-no-dns.conf" |
| } |
| ] |
| } |
| } |
| ], |
| "quicklinks": { |
| "Apache HTTP Server": "http://httpd-proxy-0.${SERVICE_NAME}.${USER}.${DOMAIN}:8080" |
| } |
| } |