docker support

This commit is contained in:
Антон
2026-02-05 07:36:25 +03:00
parent 97ec607a4b
commit 0d0761cb31
8 changed files with 182 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#!/bin/sh
# EnsureTUN device exists
if [ ! -c /dev/net/tun ]; then
mkdir -p /dev/net
mknod /dev/net/tun c 10 200
chmod 600 /dev/net/tun
fi
# Enable IP forwarding
sysctl -w net.ipv4.ip_forward=1
# Start OpenRC (needed for rc-service if we use it, but better to start openvpn directly or via rc)
# Since we are in Alpine, we can try to start the service if configured,
# but Container 4 main.py might expect rc-service to work.
openrc default
# Start the APP_PROFILER API
# We use 0.0.0.0 to be reachable from other containers
python main.py