Have some simple docker-compose.yml file configuration, but I am not sure why I can't not login to pgAdmin using [email protected] as email and admin as a password. Does it need more configuration or am I using wrong credentials?
version: "3.7"
services:
db:
image: postgres:13.1
restart: unless-stopped
env_file:
- ./.env
ports:
- 5432:5432
volumes:
- db-data:/var/lib/postgresql/data
- ./init-db.sh:/docker-entrypoint-initdb.d/init-database.sh
networks:
- appNetwork
pgAdmin:
container_name: pgAdmin
# restart: unless-stopped
image: dpage/pgadmin4:4.29
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:[email protected]}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
PGADMIN_LISTEN_PORT: 5050
volumes:
- pgadmin:/root/.pgadmin
ports:
- "5050:5050"
depends_on:
- db
networks:
- appNetwork
volumes:
db-data:
pgadmin:
networks:
appNetwork:
driver: bridge
admin
/admin
credentials, it seems the email needs to be an email string and not just any username. It worked with[email protected]
.