░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/canvas/docker-compose/postgres
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: wait-for-it
#!/bin/bash set -x ip_address=$(hostname -i) timeout=${1:-60} echo Attempting connection to Postgres for $timeout seconds... for _ in $(seq 1 $timeout); do gosu postgres pg_isready --host="$ip_address" && echo "Postgres connected!" && exit sleep 1 done echo Postgres is still down after $timeout seconds. exit 1
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 create-dbs.sh
SH
428 B
2023-09-24 03:36
EDIT
📄 Dockerfile
?
627 B
2023-09-24 03:36
EDIT
📄 wait-for-it
?
320 B
2023-09-24 03:36
EDIT