mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-24 13:03:05 +00:00
84 lines
2.4 KiB
YAML
84 lines
2.4 KiB
YAML
kernel:
|
|
image: linuxkit/kernel:4.19.34
|
|
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
|
|
init:
|
|
- linuxkit/init:3a772fafa2e45b872c72375dd6bc34993257b6d1
|
|
- linuxkit/runc:02f2f6dd425eb3ff98f488b5cdef0125be787332
|
|
- linuxkit/containerd:d197495c30d0c6e81cb038d8ab3b8f793736b39d
|
|
- linuxkit/ca-certificates:906c46a26fd2df271bf64c0259bf2267f7593213
|
|
onboot:
|
|
- name: sysctl
|
|
image: linuxkit/sysctl:713e535f2d4e4c74aba50cc7f73e3826b2dd3857
|
|
- name: dhcpcd
|
|
image: linuxkit/dhcpcd:85738d3d2f152a7879e17a61444f7714b858c2ee
|
|
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
|
- name: wg0
|
|
image: linuxkit/ip:4787413a729748bcf7560c73e0b46d38b8a8df2b
|
|
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:4787413a729748bcf7560c73e0b46d38b8a8df2b
|
|
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:01993189b8c583dc91cbbc7d4be131832c0fc205
|
|
env:
|
|
- INSECURE=true
|
|
net: /run/netns/wg1
|
|
- name: rngd
|
|
image: linuxkit/rngd:dc49cff2c835b196610a3f2efb585bb276658bce
|
|
- name: nginx
|
|
image: nginx:1.13.8-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
|