-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathAzkfile.js
executable file
·41 lines (41 loc) · 1.34 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
/**
* Documentation: http://docs.azk.io/Azkfile.js
*/
// Adds the systems that shape your system
systems({
web: {
// Dependent systems
depends: [],
// More images: http://images.azk.io
image: {"docker": "azukiapp/php-fpm:5.6"},
// Steps to execute before running instances
provision: [
"npm install bower",
"node_modules/.bin/bower install --allow-root"
],
workdir: "/azk/#{manifest.dir}",
shell: "/bin/bash",
wait: 20,
mounts: {
'/azk/#{manifest.dir}': path("."),
'/etc/nginx/sites-enabled/': path("./nginx/"),
'/azk/#{manifest.dir}/lib': path("lib"),
'/azk/#{manifest.dir}/node_modules': path("node_modules"),
},
scalable: {"default": 1},
http: {
domains: ["#{system.name}.#{azk.default_domain}"]
},
ports: {
// exports global variables
http: "80/tcp"
},
envs: {
// Make sure that the PORT value is the same as the one
// in ports/http below, and that it's also the same
// if you're setting it in a .env file
APP_DIR: "/azk/#{manifest.dir}",
PATH: 'node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
}
}
});