#!/bin/sh #Install Dockersystem #Prepare System to use Netfilter instead of nftables update-alternatives --set iptables /usr/sbin/iptables-legacy update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - touch /etc/apt/sources.list.d/docker.list echo 'deb [arch=armhf] https://download.docker.com/linux/debian/ buster stable' > /etc/apt/sources.list.d/docker.list apt update apt install --no-install-recommends docker-ce docker-compose -y systemctl enable docker #prevent SYN Flood errors echo "net.core.somaxconn = 2048" >> /etc/sysctl.conf #RestAPI - Container git clone gitosis@git.rosstein.de:sf_lactorapi.git /opt/lactorapi chgrp -R adm /opt/lactorapi chmod g+w -R /opt/lactorapi #docker-compose run web python manage.py makemigrations #docker-compose run web python manage.py migrate #docker-compose up -d