Skip to content

Instantly share code, notes, and snippets.

@tylerflint
Created September 20, 2017 00:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tylerflint/a1c025232f12d39b87860cc6b3bc7cb9 to your computer and use it in GitHub Desktop.
Save tylerflint/a1c025232f12d39b87860cc6b3bc7cb9 to your computer and use it in GitHub Desktop.
Nanobox multi-headed nodejs app example boxfile configuration
run.config:
engine: nodejs
dev_packages:
- forego
extra_packages:
- nginx-nchan
web.main:
cwd: app1
start: npm start
routes:
- /
web.api:
cwd: app2
start: npm start
routes:
- api:/
web.nchan:
start: nginx -c /app/config/nginx.conf
routes:
- pubsub:/
worker.bitrex:
cwd: app3
start: npm start
data.pubsub:
image: nanobox/redis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment