fix: add SSH tunnel startup script, docker-compose uses start.sh

This commit is contained in:
Corback
2026-06-16 10:59:30 +00:00
parent 3330931f30
commit 20df05ff72
2 changed files with 13 additions and 4 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
set -e
# Tunnel SSH vers Vigile (DB)
cp /ssh/vigile.key /tmp/vigile.key
chmod 600 /tmp/vigile.key
ssh -fN -L 15432:localhost:5432 -i /tmp/vigile.key -o StrictHostKeyChecking=no -o ServerAliveInterval=30 ubuntu@79.72.30.231
echo '[start.sh] Tunnel SSH vers Vigile établi sur 127.0.0.1:15432'
exec python app.py