forked from gabrielrcouto/palestra-async
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathAzkfile.js
59 lines (58 loc) · 1.17 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
systems({
nginx: {
depends: ['php', 'websocket'],
image: {docker: 'nginx:latest'},
workdir: '/azk/#{manifest.dir}',
shell: '/bin/bash',
command: './nginx/start.sh',
wait: 20,
mounts: {
'/azk/#{manifest.dir}/nginx': path('azk/nginx'),
'/var/www': path('.'),
'/etc/nginx/conf.d': path('azk/nginx/conf.d'),
'/etc/nginx/nginx.conf': path('azk/nginx/nginx.conf'),
},
scalable: {default: 1},
http: {
domains: [
'seminario.dev.azk.io'
]
},
ports: {
http: '80/tcp',
}
},
php: {
depends: [],
image: {docker: 'php:fpm'},
workdir: '/azk/#{manifest.dir}',
shell: '/bin/bash',
command: './php/start.sh',
wait: 20,
mounts: {
'/azk/#{manifest.dir}/php': path('azk/php'),
'/var/www': path('.'),
},
scalable: {default: 1},
ports: {
fastcgi: '9000:9000/tcp',
}
},
websocket: {
depends: [],
image: {docker: 'php:fpm'},
workdir: '/azk/#{manifest.dir}',
shell: '/bin/bash',
command: './websocket/start.sh',
wait: 20,
mounts: {
'/azk/#{manifest.dir}/websocket': path('azk/websocket'),
'/var/www': path('.'),
},
scalable: {default: 1},
ports: {
websocket: '7888:7888/tcp',
}
}
});
setDefault('nginx');