total rebase
[anni] / docker-entrypoint.sh
1 #!/bin/ash
2
3 set -e
4
5 echo "-- Waiting for database..."
6 while ! pg_isready -U ${DB_USER:-pleroma} -d postgres://${DB_HOST:-db}:${DB_PORT:-5432}/${DB_NAME:-pleroma} -t 1; do
7     sleep 1s
8 done
9
10 echo "-- Running migrations..."
11 $HOME/bin/pleroma_ctl migrate
12
13 echo "-- Starting!"
14 exec $HOME/bin/pleroma start