improved Database & Models

This commit is contained in:
Kai Waggeling 2025-12-06 20:04:11 +01:00
commit 0bbe91bec3
18 changed files with 956 additions and 0 deletions

35
docker/start.sh Normal file
View file

@ -0,0 +1,35 @@
#!/bin/sh
set -e
# --------------------------------------------
# Ensure /etc/wireguard exists
# --------------------------------------------
if [ ! -d /etc/wireguard ]; then
echo "WARN: /etc/wireguard does not exist. Creating it..."
mkdir -p /etc/wireguard
fi
# Default config für WireGuard
if [ ! -f /etc/wireguard/wg0.conf ]; then
echo "INFO: Installing default WireGuard config..."
cp /defaults/wg0.conf /etc/wireguard/wg0.conf
fi
# --------------------------------------------
# Ensure /etc/nftables exists
# --------------------------------------------
if [ ! -d /etc/nftables ]; then
echo "WARN: /etc/nftables does not exist. Creating it..."
mkdir -p /etc/nftables
fi
# default nftables.conf
if [ ! -f /etc/nftables/nftables.conf ]; then
echo "INFO: Installing default nftables.conf..."
cp /defaults/nftables.conf /etc/nftables/nftables.conf
fi
# --------------------------------------------
# Start Supervisor
# --------------------------------------------
exec /usr/bin/supervisord -c /etc/supervisor.conf