Skip to content

Commit 3030cc6

Browse files
committed
stripping down to bare minimum, more comprehensive at https://github.com/arun-gupta/dcos-java-database
1 parent a01885a commit 3030cc6

1 file changed

Lines changed: 14 additions & 52 deletions

File tree

app-definition.json

Lines changed: 14 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,16 @@
11
{
2-
"id":"/webapp",
3-
"apps":[
4-
{
5-
"id":"database",
6-
"cpus":4,
7-
"mem":4096,
8-
"instances":1,
9-
"container":{
10-
"type":"DOCKER",
11-
"docker":{
12-
"image":"arungupta/couchbase:travel",
13-
"network":"USER"
14-
}
15-
},
16-
"ipAddress":{
17-
"networkName":"dcos"
18-
}
19-
},
20-
{
21-
"id":"web",
22-
"dependencies":[
23-
"/webapp/database"
24-
],
25-
"cpus":2,
26-
"mem":4096,
27-
"instances":1,
28-
"container":{
29-
"type":"DOCKER",
30-
"docker":{
31-
"image":"arungupta/wildfly-couchbase-javaee:travel",
32-
"network":"USER",
33-
"portMappings":[
34-
{
35-
"hostPort":0,
36-
"containerPort":8080,
37-
"protocol":"tcp"
38-
}
39-
]
40-
}
41-
},
42-
"ipAddress":{
43-
"networkName":"dcos"
44-
},
45-
"env":{
46-
"COUCHBASE_URI":"database-webapp.marathon.containerip.dcos.thisdcos.directory"
47-
},
48-
"labels":{
49-
"HAPROXY_0_VHOST":"DCOS-PublicSlaveLo-18F0F3VUV2GFU-1481429739.us-west-1.elb.amazonaws.com",
50-
"HAPROXY_GROUP":"external"
51-
}
52-
}
53-
]
2+
"id":"hello-java",
3+
"cpus":1,
4+
"mem":4096,
5+
"ports":[
6+
0
7+
],
8+
"instances":1,
9+
"container":{
10+
"type":"DOCKER",
11+
"docker":{
12+
"image":"arungupta/hello-java",
13+
"network":"BRIDGE"
14+
}
15+
}
5416
}

0 commit comments

Comments
 (0)