feat: add automated SSH expect script and update docker-compose configuration

This commit is contained in:
Hamza-Ayed
2026-09-26 15:15:42 +03:00
parent 9aa45ad605
commit 58310330b0
2 changed files with 14 additions and 0 deletions
+1
View File
@@ -5,6 +5,7 @@ services:
image: postgis/postgis:15-3.3
container_name: map-db
restart: unless-stopped
shm_size: 2g
platform: linux/amd64 # Ensure compatibility on Mac Silicon
environment:
POSTGRES_USER: ${POSTGRES_USER}
+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
CMD="$@"
expect -c "
set timeout 60
spawn ssh -o StrictHostKeyChecking=no root@194.163.173.157 \"$CMD\"
expect {
\"*password:*\" {
send \"mehmetDev@2101\r\"
exp_continue
}
eof
}
"