Skip to main content
  1. Tags/

Database-Seeding

Seeding Initial Data Using Docker Compose and SQL Scripts

Deep Dive .NET · Dec 1, 2024 · 6 min read
Introduction # Nothing kills momentum on a new project like cloning the repo, running docker compose up, and landing on an empty database. No roles, no permissions, no login, so nothing works until someone reads the wiki and hand-runs a SQL script. On the Contact Management Application I wanted docker compose up to be the whole setup: containers come up, the schema seeds itself, and you can log in.
Seeding Initial Data Using Docker Compose and SQL Scripts