Skip to content
Snippets Groups Projects
Verified Commit d543f2eb authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

[PicaPlume] Fix DB connexion test

parent 911225aa
No related branches found
No related tags found
No related merge requests found
Pipeline #62580 waiting for manual action
......@@ -28,6 +28,7 @@ services:
URL: "blog.picasoft.net"
NAME: "Picablog"
ADMIN_EMAIL: picasoft@assos.utc.fr
DB_HOST: "plumedb"
volumes:
- data:/app/static/media
- searchidx:/app/search_index
......
......@@ -23,7 +23,7 @@ fi
# Wait for database to be ready
while ! PGPASSWORD="${DB_PASSWORD}" psql -h"${DB_HOST}" -U"${DB_USER}" -d"${DB_NAME}" -c "SELECT 1" &>/dev/null; do
while ! PGPASSWORD="${POSTGRES_PASSWORD}" psql -h"${DB_HOST}" -U"${POSTGRES_USER}" -d"${POSTGRES_DB}" -c "SELECT 1" &>/dev/null; do
echo "Database server not ready yet, re-trying in 5 seconds..."
sleep 5
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment