This runbook outlines steps to deploy the FakeStoreNet application.
- Docker and Docker Compose installed
- .NET 8 SDK if building locally
- Access to container registry (optional)
-
Build Docker images:
docker-compose build
-
Start services:
docker-compose up -d
-
Verify containers:
docker ps
-
Apply database migrations:
- Connect to the SQL Server container:
docker exec -it <db_container> /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P "<YourPassword>"
- Run migration scripts located in
docs/infrastructure/migrations.
- Connect to the SQL Server container:
-
Smoke test API endpoints:
- GET
http://localhost:5000/health - POST
http://localhost:5000/productswith sample payload
- GET
-
Rollback
- To stop and remove containers:
docker-compose down
- To remove volumes if needed:
docker volume rm -f <volume_name>
- To stop and remove containers:
Use this runbook to ensure consistent deployment across environments.
Document any environment-specific variables in .env files or CI/CD pipeline configuration.