-
Notifications
You must be signed in to change notification settings - Fork 0
/
Azkfile.js
51 lines (47 loc) · 1.18 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
systems({
'listen2me': {
depends: ['mongodb'],
image: {"docker": "azukiapp/node"},
provision: [
"npm install"
],
workdir: "/azk/#{manifest.dir}",
shell: "/bin/bash",
command: "npm start",
wait: {'retry': 20, 'timeout': 3000},
mounts: {
'/azk/#{manifest.dir}': path("."),
'/azk/#{manifest.dir}/bower_modules': path("bower_modules"),
'/azk/#{manifest.dir}/node_modules': path("node_modules")
},
scalable: {"default": 1},
http: {
domains: [ "#{system.name}.#{azk.default_domain}" ]
},
ports: {
http: "8000"
},
envs: {
NODE_ENV: "dev",
PORT: "8000",
APP_URL: "http://#{system.name}.#{azk.default_domain}",
},
},
mongodb: {
image : { docker: "azukiapp/mongodb" },
scalable: false,
wait: {"retry": 20, "timeout": 1000},
mounts: {
'/data/db': persistent('mongodb-#{manifest.dir}'),
},
ports: {
http: "28017:28017/tcp",
},
http: {
domains: [ "#{manifest.dir}-#{system.name}.#{azk.default_domain}" ],
},
export_envs: {
MONGODB_URI: "mongodb://#{net.host}:#{net.port[27017]}/#{manifest.dir}_development",
},
}
});