-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.json
More file actions
70 lines (70 loc) · 1.32 KB
/
docker-compose.json
File metadata and controls
70 lines (70 loc) · 1.32 KB
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
70
{
"version": "2",
"services": {
"app1": {
"image": "node:6.4.0",
"restart": "always",
"command": [
"npm",
"start"
],
"volumes": [
"./services/app/resources/app:/app"
],
"working_dir": "/app",
"environment": {
"APPNUM": 1
}
},
"app2": {
"image": "node:6.4.0",
"restart": "always",
"command": [
"npm",
"start"
],
"volumes": [
"./services/app/resources/app:/app"
],
"working_dir": "/app",
"environment": {
"APPNUM": 2
}
},
"frontend-build": {
"image": "node:6.4.0",
"command": [
"npm",
"run",
"build"
],
"working_dir": "/app",
"volumes": [
"./services/frontend-app/resources/app:/app",
"frontend-app:/app/dist:rw"
]
},
"frontend": {
"image": "nginx:1.11.5",
"restart": "always",
"volumes": [
"frontend-app:/usr/share/nginx/html:ro"
]
},
"proxy": {
"image": "nginx:1.11.5",
"volumes": [
"./services/proxy/resources/conf.d:/etc/nginx/conf.d"
],
"restart": "always",
"ports": [
"80:80",
"8080:8080",
"8081:8081"
]
}
},
"volumes": {
"frontend-app": {}
}
}