Skip to content

Commit

Permalink
cleaned up app definition with @unterstein
Browse files Browse the repository at this point in the history
  • Loading branch information
arun-gupta committed Mar 6, 2017
1 parent 6b9a5fc commit 0fa9f6d
Showing 1 changed file with 43 additions and 90 deletions.
133 changes: 43 additions & 90 deletions app-definition.json
Original file line number Diff line number Diff line change
@@ -1,101 +1,54 @@
{
"id":"/webapp",
"groups":[
{
"id":"db-group",
"apps":[
{
"id":"db",
"cpus":4,
"mem":4096,
"instances":1,
"container":{
"id":"webapp",
"apps":[
{
"id":"database",
"cpus":4,
"mem":4096,
"instances":1,
"container":{
"type":"DOCKER",
"docker":{
"image":"arungupta/couchbase:travel",
"network":"BRIDGE",
"portMappings":[
{
"containerPort":8091,
"protocol":"tcp",
"name":"admin",
"servicePort":8091,
"labels":{
"VIP_0":"/db:8091"
}
},
{
"containerPort":8092,
"protocol":"tcp",
"name":"xdcr",
"servicePort":8092,
"labels":{
"VIP_0":"/db:8092"
}
},
{
"containerPort":8093,
"protocol":"tcp",
"name":"query",
"servicePort":8093,
"labels":{
"VIP_0":"/db:8093"
}
},
{
"containerPort":11210,
"protocol":"tcp",
"name":"memcached",
"servicePort":11210,
"labels":{
"VIP_0":"/db:11210"
}
}
]
"image":"arungupta/couchbase:travel",
"network":"USER"
}
},
"labels":{
"HAPROXY_0_VHOST":"DCOS-PublicSlaveLo-12LOS82TA7BGH-719211721.us-west-1.elb.amazonaws.com",
"HAPROXY_GROUP":"external"
}
}
]
},
{
"id":"web-group",
"dependencies": ["db-group"],
"apps":[
{
"id":"web",
"cpus":2,
"mem":4096,
"instances":1,
"container":{
},
"ipAddress":{
"networkName":"dcos"
}
},
{
"id":"web",
"dependencies":[
"/webapp/database"
],
"cpus":2,
"mem":4096,
"instances":1,
"container":{
"type":"DOCKER",
"docker":{
"image":"arungupta/wildfly-couchbase-javaee:travel",
"network":"BRIDGE",
"portMappings":[
{
"hostPort":8080,
"containerPort":8080,
"protocol":"tcp",
"labels":{
"VIP_0":"/web:8080"
"image":"arungupta/wildfly-couchbase-javaee:travel",
"network":"USER",
"portMappings":[
{
"hostPort":0,
"containerPort":8080,
"protocol":"tcp"
}
}
]
]
}
},
"labels": {
},
"ipAddress":{
"networkName":"dcos"
},
"env":{
"COUCHBASE_URI":"database-webapp.marathon.containerip.dcos.thisdcos.directory"
},
"labels":{
"HAPROXY_0_VHOST":"DCOS-PublicSlaveLo-12LOS82TA7BGH-719211721.us-west-1.elb.amazonaws.com",
"HAPROXY_GROUP":"external"
},
"env": {
"COUCHBASE_URI":"webappdb-groupdb.marathon.l4lb.thisdcos.directory:8093"
}
}
]
}
]
}
}
]
}

0 comments on commit 0fa9f6d

Please sign in to comment.