version: "3.9"

services:
  db:
    image: postgres:16
    container_name: mariapp-postgres
    environment:
      POSTGRES_USER: mariapp
      POSTGRES_PASSWORD: mariapp
      POSTGRES_DB: mariapp
    ports:
      - "5432:5432"
    volumes:
      - mariapp_postgres:/var/lib/postgresql/data

volumes:
  mariapp_postgres:
