-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.json
69 lines (69 loc) · 2.09 KB
/
config.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
"id": "aspnet-todo",
"description": "aspnet vnext todo demo",
"env": "dev",
"dest": "/data",
"oses": [{
"user": "core",
"pythonInterpreter": "PATH=/home/core/bin:$PATH python"
}],
"apps": [{
"name": "mongo",
"type": "db",
"image": "aminjam/mongodb:latest",
"ports": [27017]
}, {
"name": "consumerAPI",
"type": "kestrel",
"image": "microsoft/aspnet:latest",
"host": "aspnet-todo-demo-api.com",
"ports": [5004],
"repository": {
"branch": "master",
"sshUrl": "github.com/aminjam/aspnet-vnext-docker-demo.git",
"folder": "src/API.Consumer/"
},
"customizations": [{
"src": "aspnet-run.sh",
"dest": "aspnet-run.sh",
"mode": 744
}]
}, {
"name": "consumerWeb",
"type": "static",
"image": "aminjam/nginx-static:tiny",
"host": "aspnet-todo-demo-web.com",
"ports": [80, 443],
"repository": {
"branch": "master",
"sshUrl": "github.com/aminjam/aspnet-vnext-docker-demo.git",
"folder": "src/Web/dist/"
}
}],
"playbooks": [{
"inventory": "tag_App-Role_ASPNET-TODO",
"apps": ["{{index .Apps 0}}"],
"containers": [{
"params": "-v {{.App.Dest}}:/home/app -p 9990:{{index .App.Ports 0}} -e MONGO_OPTIONS='--smallfiles' -d {{.App.Image}}"
}]
}, {
"inventory": "tag_App-Role_ASPNET-TODO",
"apps": ["{{index .Apps 1}}"],
"state": "deploying",
"containers": [{
"params": "-v {{.App.Dest}}:/home --expose {{index .App.Ports 0}} -e VIRTUAL_HOST={{.App.Host}} -e VIRTUAL_PORT={{index .App.Ports 0}} --link {{(index .Apps 0).Name}}:mongo -dt {{.App.Image}} /home/aspnet-run.sh"
}]
}, {
"inventory": "tag_App-Role_ASPNET-TODO",
"apps": ["{{index .Apps 2}}"],
"state": "deploying",
"containers": [{
"params": "-v {{.App.Dest}}:/home/app -e VIRTUAL_HOST={{.App.Host}} -e VIRTUAL_PORT={{index .App.Ports 0}} -d {{.App.Image}}"
}]
}, {
"inventory": "tag_App-Role_ASPNET-TODO",
"containers": [{
"params": "--name nginx-proxy -v /var/run/docker.sock:/tmp/docker.sock -p 80:80 -d aminjam/nginx-proxy:tiny"
}]
}]
}