Data directory "/var/lib/postgresql/data/pgdata" has wrong ownership

version: '2'
services:
  db:
     image: postgres:9.4
     volumes:
        - postgres:/var/lib/postgresql/data
volumes:
  postgres: