feat: add automated SSH expect script and update docker-compose configuration
This commit is contained in:
@@ -5,6 +5,7 @@ services:
|
|||||||
image: postgis/postgis:15-3.3
|
image: postgis/postgis:15-3.3
|
||||||
container_name: map-db
|
container_name: map-db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
shm_size: 2g
|
||||||
platform: linux/amd64 # Ensure compatibility on Mac Silicon
|
platform: linux/amd64 # Ensure compatibility on Mac Silicon
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: ${POSTGRES_USER}
|
POSTGRES_USER: ${POSTGRES_USER}
|
||||||
|
|||||||
Executable
+13
@@ -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
|
||||||
|
}
|
||||||
|
"
|
||||||
Reference in New Issue
Block a user