Skip to content

Instantly share code, notes, and snippets.

@algas
Created July 21, 2017 06:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save algas/85cb8923639df6bb45d838d13189020e to your computer and use it in GitHub Desktop.
Save algas/85cb8923639df6bb45d838d13189020e to your computer and use it in GitHub Desktop.
Linukkit example: node web app with nginx reverse proxy
kernel:
image: linuxkit/kernel:4.9.38
cmdline: "console=tty0 console=ttyS0"
init:
- linuxkit/init:d049e7b2074da5cd699a27defb47eb101142455d
- linuxkit/runc:d5cbeb95bdafedb82ad2cf11cff1a5da7fcae630
- linuxkit/containerd:e33e0534d6fca88e1eb86897a1ea410b4a5d722e
onboot:
- name: dhcpcd
image: linuxkit/dhcpcd:4b7b8bb024cebb1bbb9c8026d44d7cbc8e202c41
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
services:
- name: getty
image: linuxkit/getty:08b704915af0ce90f8f40df5d41d4c1aa14ef83a
env:
- INSECURE=true
- name: nginx
image: algas/docker-nginx:latest
capabilities:
- CAP_NET_BIND_SERVICE
- CAP_CHOWN
- CAP_SETUID
- CAP_SETGID
- CAP_DAC_OVERRIDE
- name: web
image: algas/node-js-getting-started:latest
capabilities:
- CAP_NET_BIND_SERVICE
- CAP_CHOWN
- CAP_SETUID
- CAP_SETGID
- CAP_DAC_OVERRIDE
net: host
trust:
org:
- linuxkit
- library
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment