forked from nanopack/logvac
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
boxfile.yml
36 lines (32 loc) · 1.29 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 microbox.cloud's `microbox` cli. Simply
# run `microbox run` to test/develop, or run `microbox deploy dry-run`
# to utilize. (Note the port mapping that will occur in dry-run)
run.config:
engine: 'golang'
engine.config:
package: 'github.com/mu-box/logvac'
extra_steps:
- go install github.com/mu-box/mist@latest
- go build -o logvac
deploy.config:
extra_steps:
- go install github.com/mu-box/mist@latest
- 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: microbox/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/gomicro/logvac/current` to view in `deploy dry-run` output
debug-narc: 'narcd narc.conf' # for debugging, send logs to `/var/log/gomicro/logvac/current` to view in `deploy dry-run` output