added migrations to ensure db creation etc.

This commit is contained in:
2026-05-14 02:11:01 +02:00
parent 233da7e7ea
commit f0fdc93316
6 changed files with 136 additions and 5 deletions
+8 -2
View File
@@ -11,6 +11,11 @@ services:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U demo"]
interval: 10s
timeout: 5s
retries: 5
api:
build:
@@ -19,9 +24,10 @@ services:
environment:
ConnectionStrings__DefaultConnection: "Host=db;Port=5432;Database=demo;Username=demo;Password=demo"
ports:
- "5000:80"
- "5000:8080"
depends_on:
- db
db:
condition: service_healthy
volumes:
pgdata: