forked from parse-community/parse-server-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAzkfile.js
59 lines (57 loc) · 1.42 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
56
57
58
59
/**
* Documentation: http://docs.azk.io/Azkfile.js
*/
// Adds the systems that shape your system
systems({
'parse-server': {
// Dependent systems
depends: ['mongodb'],
// More images: http://images.azk.io
image: {"docker": "azukiapp/node"},
// Steps to execute before running instances
provision: [
"cp .env.sample .env",
"npm install"
],
workdir: "/azk/#{manifest.dir}",
shell: "/bin/bash",
command: ["npm", "start"],
wait: 120,
mounts: {
'/azk/#{manifest.dir}': sync("."),
'/azk/#{manifest.dir}/node_modules': persistent("./node_modules"),
},
scalable: {"default": 1},
http: {
domains: [ "#{system.name}.#{azk.default_domain}" ]
},
ports: {
// exports global variables
http: "3000/tcp",
},
envs: {
NODE_ENV: "dev",
PORT: "3000",
// DOMAIN will be passed to ParseServer
DOMAIN: "#{system.name}.#{azk.default_domain}",
},
},
'mongodb': {
image : { docker: 'azukiapp/mongodb' },
scalable: false,
wait: 120,
mounts: {
'/data/db': persistent('mongodb-#{manifest.dir}'),
},
ports: {
http: '28017:28017/tcp',
},
http: {
domains: [ '#{manifest.dir}-#{system.name}.#{azk.default_domain}' ],
},
export_envs: {
DATABASE_URI: 'mongodb://#{net.host}:#{net.port[27017]}/#{manifest.dir}_development',
},
},
});
setDefault('parse-server');