forked from elabftw/elabftw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
boxfile.yml
71 lines (67 loc) · 1.57 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
64
65
66
67
68
69
70
71
# this file allows one to run elabftw on nanobox.io
run.config:
engine: php
engine.config:
webserver: 'nginx'
nginx_document_root: '/web'
nginx_index_list:
- index.php
runtime: php-7.1
extensions:
- ctype
- curl
- dom
- fileinfo
- gd
- gettext
- mbstring
- mcrypt
- pdo
- pdo_mysql
- session
- zip
zend_extensions:
- opcache
writable_dirs:
- cache
composer_install: 'composer install --no-dev -a'
cache_dirs:
- node_modules
extra_path_dirs:
- node_modules/.bin
extra_packages:
- nodejs
extra_steps:
- yarn
web.site:
start:
php: start-php
nginx: start-nginx
network_dirs:
data.storage:
- uploads
data.mysql:
image: nanobox/mysql:5.7
config:
users:
- username: elabftw
meta:
privileges:
- privilege: ALL PRIVILEGES
'on': elabftw.*
with_grant: true
databases:
- elabftw
data.storage:
image: nanobox/unfs:0.9
deploy.config:
extra_steps:
- yarn install
- yarn buildall
- mkdir cache uploads
- chown gonano:gonano cache uploads
transform:
- 'bash src/tools/nanobox-config.sh'
before_live_all:
web.site:
- chmod 700 cache uploads