mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-25 02:13:43 +00:00
84 lines
2.4 KiB
YAML
84 lines
2.4 KiB
YAML
kernel:
|
|
image: linuxkit/kernel:4.9.66
|
|
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
|
|
init:
|
|
- linuxkit/init:19ab525233763e1740cd3b9d60cd17141d316776
|
|
- linuxkit/runc:1b0741d07949c0acc444cd6a04ee7f833443579d
|
|
- linuxkit/containerd:a25f471a8ca68e75afad7bf84187adbe70513b8d
|
|
- linuxkit/ca-certificates:af4880e78edc28743f7c5e262678c67c6add4c26
|
|
onboot:
|
|
- name: sysctl
|
|
image: linuxkit/sysctl:efe693534bb623007f94a2e3ff4a9fd6ead75aa1
|
|
- name: dhcpcd
|
|
image: linuxkit/dhcpcd:48831507404049660b960e4055f544917d90378e
|
|
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
|
- name: wg0
|
|
image: linuxkit/ip:e6f92b663e004be58c5d1fb43830d9155d625d28
|
|
net: new
|
|
binds:
|
|
- /etc/wireguard:/etc/wireguard
|
|
command: ["/usr/bin/lk-wg-config", "configure", "/etc/wireguard/wg0.conf"]
|
|
runtime:
|
|
interfaces:
|
|
- name: wg0
|
|
add: wireguard
|
|
createInRoot: true
|
|
bindNS:
|
|
net: /run/netns/wg0
|
|
- name: wg1
|
|
image: linuxkit/ip:e6f92b663e004be58c5d1fb43830d9155d625d28
|
|
net: new
|
|
binds:
|
|
- /etc/wireguard:/etc/wireguard
|
|
command: ["/usr/bin/lk-wg-config", "configure", "/etc/wireguard/wg1.conf"]
|
|
runtime:
|
|
interfaces:
|
|
- name: wg1
|
|
add: wireguard
|
|
createInRoot: true
|
|
bindNS:
|
|
net: /run/netns/wg1
|
|
services:
|
|
- name: getty
|
|
image: linuxkit/getty:6af22c32c98536a79230eef000e9abd06b037faa
|
|
env:
|
|
- INSECURE=true
|
|
net: /run/netns/wg1
|
|
- name: rngd
|
|
image: linuxkit/rngd:842e5e8ece7934f0cab9fd0027b595ff3471e5b9
|
|
- name: nginx
|
|
image: nginx:alpine
|
|
net: /run/netns/wg0
|
|
capabilities:
|
|
- CAP_NET_BIND_SERVICE
|
|
- CAP_CHOWN
|
|
- CAP_SETUID
|
|
- CAP_SETGID
|
|
- CAP_DAC_OVERRIDE
|
|
files:
|
|
- path: etc/wireguard/wg0.conf
|
|
contents: |
|
|
[Interface]
|
|
Address = 192.168.2.1/24
|
|
DNS = 192.168.2.2
|
|
PrivateKey = KG7EKkHDkp7THfW5mOXcZzo3RbGAjq+ARMfJGFm5G1s=
|
|
ListenPort = 51820
|
|
[Peer]
|
|
PublicKey = ZP7h1OjA1oIAmsAvMKujp2RAAC/f0kY814b3Xq6j/0Y=
|
|
AllowedIPs = 0.0.0.0/0
|
|
Endpoint = 127.0.0.1:51821
|
|
- path: etc/wireguard/wg1.conf
|
|
contents: |
|
|
[Interface]
|
|
Address = 192.168.2.2/24
|
|
PrivateKey = SCGCKDuTm4PMOw+LXdK/2s8mxnv145QHOohKRq3vc2A=
|
|
ListenPort = 51821
|
|
[Peer]
|
|
PublicKey = AcS5t3PC5nL/oj0sYhc3yFpDlRaXoJ0mfEq6iq0rFF4=
|
|
AllowedIPs = 0.0.0.0/0
|
|
Endpoint = 127.0.0.1:51820
|
|
trust:
|
|
org:
|
|
- linuxkit
|
|
- library
|