Commit b1085d14 authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

[PicaPlume] Fix DB connexion test

parent 43fbf7b2
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment