Last active
September 4, 2015 16:27
-
-
Save grkvlt/664492e1631b48936e12 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| id: using-docker-example | |
| name: "Using Docker Example Application" | |
| location: my-docker-cloud | |
| services: | |
| - type: org.apache.brooklyn.entity.nosql.redis.RedisStore | |
| id: redis | |
| name: "Redis Node" | |
| version: 3.0.0 | |
| - type: docker:amouat/dnmonster:1.0 | |
| id: dnmonster | |
| name: "DNMonster Container" | |
| useSsh: false | |
| - type: docker:amouat/identidock:1.0 | |
| id: identidock | |
| name: "Identidock Container" | |
| useSsh: false | |
| portBindings: | |
| 80: 9090 | |
| env: | |
| REDIS_6379_PORT_TCP_PORT: | |
| $brooklyn:component("redis").attributeWhenReady("redis.port") | |
| REDIS_6379_PORT_TCP_ADDR: | |
| $brooklyn:component("redis").attributeWhenReady("host.subnet.hostname") | |
| DNMONSTER_PORT: | |
| $brooklyn:formatString("tcp://%s:8080", component("dnmonster").attributeWhenReady("host.subnet.hostname")) | |
| DNMONSTER_8080_PORT_TCP_PORT: | |
| 8080 | |
| DNMONSTER_8080_PORT_TCP_ADDR: | |
| $brooklyn:component("dnmonster").attributeWhenReady("host.subnet.hostname") | |
| REDIS_PORT: | |
| $brooklyn:formatString: | |
| - "tcp://%s:%s" | |
| - $brooklyn:component("redis").attributeWhenReady("host.subnet.hostname") | |
| - $brooklyn:component("redis").attributeWhenReady("redis.port") | |
| start.latch: $brooklyn:component("redis").attributeWhenReady("service.isUp") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment