Skip to content

Commit 3571d34

Browse files
committed
docs: include PostgreSQL information
1 parent 21db14d commit 3571d34

1 file changed

Lines changed: 19 additions & 4 deletions

File tree

README.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ flowchart LR
1717
SPA["TaskManagementClient (Angular SPA)"] -->|"HTTPS"| Caddy["Caddy Reverse Proxy"]
1818
Caddy -->|"HTTPS"| Auth["Auth Service<br/>OpenIddict + Identity"]
1919
Caddy -->|"HTTPS"| Api["API Service<br/>Projects + TaskItems + Activity"]
20-
Auth --> Db[("SQL Server")]
20+
Auth --> Db[("SQL Server / PostgreSQL")]
2121
Api --> Db
2222
```
2323

@@ -123,7 +123,7 @@ Benefits:
123123
## Tech Stack
124124

125125
- ASP.NET Core (.NET 8)
126-
- EF Core (SQL Server)
126+
- EF Core (SQL Server + PostgreSQL)
127127
- MediatR
128128
- FluentValidation
129129
- AutoMapper
@@ -151,6 +151,10 @@ Benefits:
151151
### `SQL Server`
152152
- Shared persistence for Auth and API domains
153153

154+
### `PostgreSQL`
155+
- Alternative shared persistence for Auth and API domains
156+
- Can run side-by-side with SQL Server during migration
157+
154158
### `Caddy`
155159
- Local HTTPS termination
156160
- Routing for `auth.localhost` and `api.localhost`
@@ -171,14 +175,25 @@ You can copy `.env.example` to `.env` and adjust values if needed.
171175

172176
Database selection:
173177
- `DATABASE_PROVIDER=SqlServer` (default, current baseline)
174-
- `DATABASE_PROVIDER=Postgres` (PostgreSQL path during migration)
178+
- `DATABASE_PROVIDER=Postgres` (PostgreSQL runtime mode)
175179

176180
### Run
177181
```bash
178182
docker compose up --build
179183
```
180184

181-
This starts SQL Server, Auth, API, and Caddy with local HTTPS routing.
185+
This starts SQL Server, PostgreSQL, Auth, API, and Caddy with local HTTPS routing.
186+
Only the provider selected by `DATABASE_PROVIDER` is used by Auth/API at runtime.
187+
188+
Examples:
189+
190+
```bash
191+
# default (SQL Server)
192+
DATABASE_PROVIDER=SqlServer docker compose up --build
193+
194+
# PostgreSQL mode
195+
DATABASE_PROVIDER=Postgres docker compose up --build
196+
```
182197

183198
---
184199

0 commit comments

Comments
 (0)