Database is uninitialized and superuser password is not specified

Facing error to run the voting app.

we need to provide environment variable, got it.

Hi @mohdziyadk,

You can refer to the documentation on docker hub for that Docker

Regard

Thank You, below helped me
docker run -d --name=db -e POSTGRES_HOST_AUTH_METHOD=trust postgres:9.4

Hi @mohdziyadk, nice work
Never use on Production environment, this option allows anyone to connect without a password, even if one is set.

The best approach is :

docker run -d \
	--name some-postgres \
	-e POSTGRES_PASSWORD=mysecretpassword \
	postgres

Regard