Connecting pgadmin to postgres in docker
问题 I have a docker-compose file with services for python , nginx , postgres and pgadmin : services: postgres: image: postgres:9.6 env_file: .env volumes: - postgres_data:/var/lib/postgresql/data ports: - "5431:5431" pgadmin: image: dpage/pgadmin4 links: - postgres depends_on: - postgres environment: PGADMIN_DEFAULT_EMAIL: admin@admin.com PGADMIN_DEFAULT_PASSWORD: pwdpwd volumes: - pgadmin:/root/.pgadmin ports: - "5050:80" backend: build: context: ./foobar # This refs a Dockerfile with Python and