-
Notifications
You must be signed in to change notification settings - Fork 2
/
boxfile.yml
63 lines (53 loc) · 1.18 KB
/
boxfile.yml
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
60
61
62
63
run.config:
# install php and associated runtimes
engine: php
# php engine configuration (php version, extensions, etc)
engine.config:
# sets the php version to 7.0
runtime: php-7.0
# use nginx
webserver: nginx
# public directory
document_root: www
# index
nginx_default_gateway: index.php
# enables php extensions
extensions:
- bcmath
- ctype
- dom
- fileinfo
- gd
- json
- iconv
- intl
- mbstring
- memcache
- pdo
- pdo_mysql
- pdo_sqlite
- session
- simplexml
- tokenizer
- xml
- zlib
# add a MySQL database
data.db:
image: nanobox/mysql
#
web.main:
start:
nginx: start-nginx
fpm: start-php
# add writable dirs to your web component
writable_dirs:
- log
- temp
# the path to a logfile you want streamed to the nanobox dashboard
log_watch:
nginx[access]: /data/var/log/nginx/access.log
nginx[error]: /data/var/log/nginx/error.log
php[error]: /data/var/log/php/php_error.log
php[fpm]: /data/var/log/php/php_fpm.log
nette[error]: /app/log/error.log
nette[exception]: /app/log/exception.log