fix postgres wrong mount
This commit is contained in:
parent
d700a9fc13
commit
15174fabcd
5 changed files with 29 additions and 20 deletions
|
|
@ -17,7 +17,7 @@ else
|
|||
fi
|
||||
|
||||
echo "Creating Hedgehog infrastructure..."
|
||||
source ./hedgehog/.env
|
||||
source ./hedgedoc/.env
|
||||
docker exec postgres psql -U $POSTGRES_USER -d postgres -c "CREATE USER $HEDGEDOC_DB_USER WITH PASSWORD '$HEDGEDOC_DB_PASSWORD';"
|
||||
docker exec postgres psql -U $POSTGRES_USER -d postgres -c "CREATE DATABASE $HEDGEDOC_DB_NAME OWNER $HEDGEDOC_DB_USER;"
|
||||
docker exec postgres psql -U $POSTGRES_USER -d $HEDGEDOC_DB_NAME -c "GRANT ALL PRIVILEGES ON DATABASE $HEDGEDOC_DB_NAME TO $HEDGEDOC_DB_USER;"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue