services:
  db: 
    image: postgres
    environment:
      POSTGRES_PASSWORD: secret
      POSTGRES_USER: root
    ports:
      - 5432:5432
    volumes:
      - postgres-data:/data
    
volumes:  
  postgres-data: