I am trying to setup a postgres container and want to setup the postgres login with:
POSTGRES_USER: docker POSTGRES_PASSWORD: docker
So I have
Thanks to Bryan with the docker-compose exec containername env I have discovered that the need is also to delete volumes. Since for the docker-compose volume rm volumename you need to know the exact name it is easier just to delete all with:
docker-compose exec containername env
docker-compose volume rm volumename
docker-compose down --volumes