Add some scaffolding.

This commit is contained in:
2026-05-29 12:57:56 -06:00
parent 804fae4a90
commit 6ca1117565
8 changed files with 264 additions and 0 deletions

28
docker-compose.yml Normal file
View File

@@ -0,0 +1,28 @@
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: notesvault
POSTGRES_USER: notesvault
POSTGRES_PASSWORD: notesvault
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U notesvault"]
interval: 5s
timeout: 5s
retries: 5
api:
build: .
ports:
- "8080:8080"
environment:
SPRING_PROFILES_ACTIVE: postgres
DATASOURCE_URL: jdbc:postgresql://postgres:5432/notesvault
DATASOURCE_USERNAME: notesvault
DATASOURCE_PASSWORD: notesvault
JWT_SECRET: ${JWT_SECRET:?JWT_SECRET must be set}
depends_on:
postgres:
condition: service_healthy