This commit is contained in:
2026-04-07 15:58:45 -07:00
parent 376f5530d7
commit e45e2c28a9
7 changed files with 197 additions and 0 deletions

18
entrypoint.sh Normal file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
set -e
# Start tailscaled in background
tailscaled &
# Wait for tailscaled to be ready
until tailscale status >/dev/null 2>&1; do
sleep 0.5
done
# Authenticate with Tailscale
tailscale up --authkey="${TAILSCALE_AUTHKEY}" --hostname="${TAILSCALE_HOSTNAME:-gitea}"
echo "Tailscale connected: $(tailscale status --json | grep -o '"Hostname":"[^"]*"' | head -1 | cut -d'"' -f4)"
# Run Gitea
exec docker/entrypoint.sh "$@"