Skip to content

Commit

Permalink
start-env: set auth_method=trust for postgres
Browse files Browse the repository at this point in the history
The postgres docker image does not allow passwordless admin user by default:
docker-library/postgres#681

auth_method=trust needs to be set to allow having no password for the postgres
user
  • Loading branch information
fho committed Feb 17, 2020
1 parent f2f879e commit 3b0ef31
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion start-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ docker run -d -p $REGISTRY_PORT:5000 --name docker-registry registry:2
echo "Started docker registry container on port $REGISTRY_PORT"


docker run -d -p $PSQL_PORT:5432 -e POSTGRES_DB=baur postgres:latest
docker run \
-d \
-p $PSQL_PORT:5432 \
-e POSTGRES_HOST_AUTH_METHOD=trust \
-e POSTGRES_DB=baur \
postgres:latest

echo "Started docker PostgreSQL container on port $PSQL_PORT"
echo "Run 'baur init db' to initialize the database for baur"

0 comments on commit 3b0ef31

Please sign in to comment.