fix: add SSH tunnel startup script, docker-compose uses start.sh
This commit is contained in:
Executable
+11
@@ -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
|
||||
Reference in New Issue
Block a user