Docker Community Forums

Share and learn in the Docker community.

Postgres Docker-compose Problem


(Theodugautier) #1

Hello,

Actually, I have a problem with docker-compose and a PostgreSQL Image. In fact, I would like create a postgreSQL images (with persistence) and test connection with DBeaver. But I receive an error message :

FATAL : authentification ident failed for user "root"

My docker-compose.yml :

version: "3"

services:
    db:
      image: postgres
      environment:
           - POSTGRES_USER=root
           - POSTGRES_PASSWORD=root
           - POSTGRES_DB=test
      ports:
           - "5433:5432"
      volumes:
           - ./pgdata:/var/lib/docker

Have you an idea about my problem ?

Thank you ! :slight_smile:

OS : Fedora 27
Docker Version : 1.13.1 build b5e3294/1.13.1
Docker-compose Version : 1.17.1 build 6d101fb