version: '3.8'
services:
  postgres:
    image: postgres:15
    container_name: nordabiz-postgres
    environment:
      POSTGRES_DB: nordabiz
      POSTGRES_USER: nordabiz_app
      POSTGRES_PASSWORD: dev_password
    ports:
      - "5433:5432"  # Port 5433 lokalnie (unika kolizji z innymi projektami)
    volumes:
      - nordabiz_pgdata:/var/lib/postgresql/data
    restart: unless-stopped

volumes:
  nordabiz_pgdata:
