No description
Find a file
2024-07-13 20:46:45 +02:00
authentik Create .env 2024-07-13 17:45:40 +02:00
authentiknginx Update nginx.conf 2024-07-13 19:37:17 +02:00
authentikpostgresql Create .env 2024-07-13 17:46:23 +02:00
authentikredis Create .env 2024-07-13 17:46:42 +02:00
nodejsdev Create down.sh 2024-07-13 20:46:45 +02:00
overleaf-network Create create.txt 2024-07-13 15:58:54 +02:00
overleafmongo Add files via upload 2024-07-13 17:47:26 +02:00
overleafnginx Add files via upload 2024-07-13 17:47:50 +02:00
overleafredis Add files via upload 2024-07-13 17:48:22 +02:00
overleafserver Add files via upload 2024-07-13 17:48:37 +02:00
overleafsmtpd Add files via upload 2024-07-13 17:48:57 +02:00
user_tools Add files via upload 2024-04-09 20:09:22 +02:00
install_node_dev_container.yaml Add files via upload 2024-04-12 02:30:56 +02:00
LICENSE Initial commit 2024-04-08 10:48:45 +02:00
README.md Update README.md 2024-07-13 15:57:36 +02:00

apt update
apt upgrade

apt install git pkg-config libssl-dev curl mc argon2 ca-certificates net-tools

install -m 0755 -d /etc/apt/keyrings

curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc

chmod a+r /etc/apt/keyrings/docker.asc

echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
  $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

apt-get update

apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

echo "{" > /etc/docker/daemon.json
echo '  "iptables": false' >> /etc/docker/daemon.json 
echo "}" >> /etc/docker/daemon.json  

systemctl restart docker

sed -i -e 's/DEFAULT_FORWARD_POLICY="DROP"/DEFAULT_FORWARD_POLICY="ACCEPT"/g' /etc/default/ufw
ufw reload
iptables -t nat -A POSTROUTING ! -o docker0 -s 172.18.0.0/16 -j MASQUERADE

ufw allow in on docker0
ufw route allow in on docker0
ufw route allow out on docker0

ufw allow 22
ufw allow 443
ufw enable

ufw status verbose

docker run hello-world