-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (53 loc) · 1.15 KB
/
docker-compose.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
version: "2.1"
services:
k3s:
build: ./k3s
ulimits:
nproc: 65535
nofile:
soft: 65535
hard: 65535
privileged: true
network_mode: host
tmpfs:
- /run/k3s
- /run/containerd
# For Calico
- /run/calico
- /run/nodeagent
restart: always
volumes:
- k3s_data_dir:/var/lib/rancher/k3s
- k3s_node_dir:/etc/rancher
# For Calico
- calico_data_dir:/var/lib/calico
- k3s_cni_net:/etc/cni/net.d
- k3s_cni_bin:/opt/cni/bin
- k3s_cni_log:/var/log/calico
- k3s_flexvol:/opt/libexec/kubernetes/kubelet-plugins/volume/exec
depends_on:
- wireguard
wireguard:
build: ./wireguard
privileged: true
network_mode: host
volumes:
- wireguard_etc:/etc/wireguard
labels:
io.balena.features.kernel-modules: "1"
coordinator:
build: ./coordinator
volumes:
- wireguard_etc:/etc/wireguard
labels:
io.balena.features.supervisor-api: "1"
volumes:
k3s_data_dir: {}
k3s_node_dir: {}
k3s_flexvol: {}
k3s_cni_net: {}
k3s_cni_bin: {}
k3s_cni_log: {}
calico_data_dir: {}
wireguard_etc: {}