# Local development DB only. Devs run `docker compose -f docker-compose.dev.yml up -d`
# and `dotnet run` against it. Production uses docker-compose.yml (api + db).
name: jobsmedical-dev

services:
  db:
    image: postgres:17-alpine
    container_name: jobsmedical-db
    restart: unless-stopped
    environment:
      POSTGRES_DB: jobsmedical
      POSTGRES_USER: jobsmedical
      POSTGRES_PASSWORD: jobsmedical_dev
    ports:
      - "5433:5432"   # host 5433 to avoid clashing with a local Postgres on 5432
    volumes:
      - jobsmedical-pgdata:/var/lib/postgresql/data

volumes:
  jobsmedical-pgdata:
