-
Notifications
You must be signed in to change notification settings - Fork 9
/
boxfile.yml
36 lines (32 loc) · 1.27 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
# This boxfile is for use with nanobox.io's `nanbox` cli. Simply
# run `nanobox run` to test/develop, or run `nanobox deploy dry-run`
# to utilize. (Note the port mapping that will occur in dry-run)
run.config:
engine: 'golang'
engine.config:
package: 'github.com/nanopack/logvac'
extra_steps:
- go get github.com/nanopack/mist
- go build -o logvac
deploy.config:
extra_steps:
- go get github.com/nanopack/mist
- cp $(which mist) $APP_DIR/mist
- cp $CODE_DIR/config.json $APP_DIR/config.json
- cp $CODE_DIR/example-narc.conf $APP_DIR/narc.conf
data.storage:
image: nanobox/unfs
web.logvac:
network_dirs:
data.storage:
- db/
ports:
- tcp:8080:1445 # for mist (subscribe to logs)
- tcp:6360:6360 # for adding users or posting logs via http
- tcp:6361:6361 # for submitting logs via tcp
- udp:514:6361 # for submitting logs via udp
start:
mist: './mist --server --listeners "tcp://0.0.0.0:1445"'
logvac: './logvac -c config.json'
debug-mist: './mist subscribe --tags log' # for debugging, send logs to `/var/log/gonano/logvac/current` to view in `deploy dry-run` output
debug-narc: 'narcd narc.conf' # for debugging, send logs to `/var/log/gonano/logvac/current` to view in `deploy dry-run` output