version: '3' services: postgres: image: postgres:9.6 ports: - "5432:5432" volumes: - postgres-data:/var/lib/postgresql/data volumes: postgres-data: