forked from erming/shout
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAzkfile.js
More file actions
59 lines (54 loc) · 1.63 KB
/
Azkfile.js
File metadata and controls
59 lines (54 loc) · 1.63 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
/* globals systems path sync persistent */
/* eslint camelcase: [2, {properties: "never"}] */
/* eslint comma-dangle: [0, {properties: "never"}] */
systems({
shout: {
depends: [],
image: { docker: 'azukiapp/node:0.10' },
provision: [
'npm install',
'npm install grunt-cli',
'node_modules/.bin/grunt',
],
workdir: '/azk/#{manifest.dir}',
shell: '/bin/bash',
command: 'node index.js',
wait: 30,
mounts: {
'/azk/#{manifest.dir}': path('.'),
'/azk/#{manifest.dir}/node_modules': persistent('#{manifest.dir}/node_modules'),
},
scalable: { default: 1 },
http: {
domains: [
'#{env.HOST_DOMAIN}', // used if deployed
'#{env.HOST_IP}', // used if deployed
'#{system.name}.#{azk.default_domain}', // default azk domain
]
},
ports: {
http: '8080/tcp'
},
envs: {
DOMAIN: '#{system.name}.#{azk.default_domain}',
HOST: '0.0.0.0',
PORT: '8080',
},
},
deploy: {
image: { docker: 'azukiapp/deploy-digitalocean' },
mounts: {
'/azk/deploy/src': path('.'),
'/azk/deploy/.ssh': path('#{env.HOME}/.ssh'), // Required to connect with the remote server
'/azk/deploy/.config': persistent('deploy-config')
},
// This is not a server. Just run it with `azk deploy`
scalable: { default: 0, limit: 0 },
envs: {
// List with all available deployment settings:
// https://github.com/azukiapp/docker-deploy-digitalocean/blob/master/README.md
GIT_REF: 'master',
AZK_RESTART_COMMAND: 'azk restart -Rvv',
}
},
});