fickit: re-added sysctl
This commit is contained in:
parent
e5a9a2ecba
commit
47006d76fe
4 changed files with 31 additions and 5 deletions
7
configs/sysctl-backend.conf
Normal file
7
configs/sysctl-backend.conf
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
net.ipv6.conf.all.disable_ipv6 = 1
|
||||||
|
|
||||||
|
# Increase system file descriptor limit
|
||||||
|
fs.file-max = 65535
|
||||||
|
|
||||||
|
# Increase system IP port limits
|
||||||
|
net.ipv4.ip_local_port_range = 2000 65000
|
8
configs/sysctl-frontend.conf
Normal file
8
configs/sysctl-frontend.conf
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
net.ipv4.ip_forward = 1
|
||||||
|
net.ipv6.conf.all.disable_ipv6 = 1
|
||||||
|
|
||||||
|
# Increase system file descriptor limit
|
||||||
|
fs.file-max = 65535
|
||||||
|
|
||||||
|
# Increase system IP port limits
|
||||||
|
net.ipv4.ip_local_port_range = 2000 65000
|
|
@ -15,9 +15,10 @@ onboot:
|
||||||
image: linuxkit/modprobe:v0.6
|
image: linuxkit/modprobe:v0.6
|
||||||
command: ["/bin/sh", "-c", "modprobe e1000e"]
|
command: ["/bin/sh", "-c", "modprobe e1000e"]
|
||||||
|
|
||||||
# - name: sysctl
|
- name: sysctl
|
||||||
# image: linuxkit/sysctl:v0.6
|
image: linuxkit/sysctl:v0.6
|
||||||
# command: ["/usr/bin/sysctl", "-w", "net.ipv6.conf.all.disable_ipv6=1"]
|
binds:
|
||||||
|
- /etc/sysctl.d/01-fic.conf:/etc/sysctl.d/01-fic.conf:ro
|
||||||
|
|
||||||
# Filesystem
|
# Filesystem
|
||||||
- name: swap
|
- name: swap
|
||||||
|
@ -242,6 +243,10 @@ services:
|
||||||
uts: new
|
uts: new
|
||||||
|
|
||||||
files:
|
files:
|
||||||
|
- path: etc/sysctl.d/01-fic.conf
|
||||||
|
source: configs/sysctl-backend.conf
|
||||||
|
mode: "0444"
|
||||||
|
|
||||||
- path: root/synchro.sh
|
- path: root/synchro.sh
|
||||||
source: configs/synchro.sh
|
source: configs/synchro.sh
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
|
|
|
@ -15,8 +15,10 @@ onboot:
|
||||||
image: linuxkit/modprobe:v0.6
|
image: linuxkit/modprobe:v0.6
|
||||||
command: ["/bin/sh", "-c", "modprobe r8169;"]
|
command: ["/bin/sh", "-c", "modprobe r8169;"]
|
||||||
|
|
||||||
# - name: sysctl
|
- name: sysctl
|
||||||
# image: linuxkit/sysctl:v0.6
|
image: linuxkit/sysctl:v0.6
|
||||||
|
binds:
|
||||||
|
- /etc/sysctl.d/01-fic.conf:/etc/sysctl.d/01-fic.conf:ro
|
||||||
|
|
||||||
# Filesystem
|
# Filesystem
|
||||||
- name: swap
|
- name: swap
|
||||||
|
@ -204,6 +206,10 @@ services:
|
||||||
|
|
||||||
|
|
||||||
files:
|
files:
|
||||||
|
- path: etc/sysctl.d/01-fic.conf
|
||||||
|
source: configs/sysctl-frontend.conf
|
||||||
|
mode: "0444"
|
||||||
|
|
||||||
- path: etc/nginx/ssl/dhparams-4096.pem
|
- path: etc/nginx/ssl/dhparams-4096.pem
|
||||||
source: configs/dhparams-4096.pem
|
source: configs/dhparams-4096.pem
|
||||||
mode: "0444"
|
mode: "0444"
|
||||||
|
|
Reference in a new issue