Facing error to run the voting app.
we need to provide environment variable, got it.
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