version: '2'

services:
  postgres:
    build: .
    ports:
      - "5432:5432"
    volumes:
      - ./pg-data:/var/lib/postgresql/data

version: '2'

services:
  postgres:
    build: .
    ports:
      - "5432:5432"
    volumes:
      - ./pg-data:/var/lib/postgresql/data:Z

Set SELinux context on Postgres data.
Set SELinux context on Postgres data.
