version: "3.9"

services:
  postgres:
    image: postgres:16
    container_name: traffic_accidents_db
    restart: always
    environment:
      POSTGRES_DB: traffic_accidents
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: postgres
    ports:
      - "5434:5432"
    volumes:
      - pgdata:/var/lib/postgresql/data

volumes:
  pgdata:
