/
Azkfile.js
55 lines (55 loc) · 1.2 KB
/
Azkfile.js
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
systems({
reagindo: {
depends: ['api'],
image: {"docker": "azukiapp/node:5.2.0"},
provision: [
"npm install",
],
workdir: "/azk/#{manifest.dir}",
shell: "/bin/bash",
command: ["npm", "start"],
wait: 20,
mounts: {
'/azk/#{manifest.dir}': sync("."),
'/azk/#{manifest.dir}/node_modules': persistent("./node_modules_azk"),
},
scalable: {"default": 1},
http: {
domains: [ "#{system.name}.#{azk.default_domain}" ]
},
ports: {
http: "8000/tcp",
livereload: "35729:35729/tcp"
},
envs: {
NODE_ENV: "dev",
PORT: "8000",
},
},
api: {
depends: [],
image: {"docker": "azukiapp/node:5.2.0"},
provision: [
"npm install",
],
workdir: "/azk/#{manifest.dir}",
shell: "/bin/bash",
command: ["npm", "start"],
wait: 20,
mounts: {
'/azk/#{manifest.dir}': sync("./api"),
'/azk/#{manifest.dir}/node_modules': persistent("./api/node_modules_azk"),
},
scalable: {"default": 1},
http: {
domains: [ "#{system.name}.#{azk.default_domain}" ]
},
ports: {
http: "8000/tcp"
},
envs: {
NODE_ENV: "dev",
PORT: "8000",
},
},
});