Skip to content

Commit 3b0ef31

Browse files
author
Fabian Holler
committed
start-env: set auth_method=trust for postgres
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
1 parent f2f879e commit 3b0ef31

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

start-env.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ docker run -d -p $REGISTRY_PORT:5000 --name docker-registry registry:2
1414
echo "Started docker registry container on port $REGISTRY_PORT"
1515

1616

17-
docker run -d -p $PSQL_PORT:5432 -e POSTGRES_DB=baur postgres:latest
17+
docker run \
18+
-d \
19+
-p $PSQL_PORT:5432 \
20+
-e POSTGRES_HOST_AUTH_METHOD=trust \
21+
-e POSTGRES_DB=baur \
22+
postgres:latest
23+
1824
echo "Started docker PostgreSQL container on port $PSQL_PORT"
1925
echo "Run 'baur init db' to initialize the database for baur"

0 commit comments

Comments
 (0)