- docker-compose.yml (dev): 3 services — postgres:16, backend (gradle bootRun with JDK 21, spring-boot-devtools), frontend (Vite HMR on node:24-alpine). Source volume mounts for live editing, Gradle cache volume for fast rebuilds, pg_isready healthcheck on postgres. - docker-compose.prod.yml (prod): same 3 services but with multi-stage Dockerfiles. Backend: Gradle bootJar → JRE Alpine, non-root user. Frontend: npm ci + vite build → nginx:alpine serving static dist/. SSL termination via self-signed cert (auto-generated in entrypoint). No source mounts, restart: unless-stopped, separate volumes. - application-docker.yml: Spring profile overriding H2 with PostgreSQL via env vars. Hostname "postgres" resolved by Docker Compose DNS. - Vite proxy /api → backend:8080 for dev. nginx nginx.conf handles /api proxy + SPA fallback + gzip + SSL in prod. - AGENTS.md, README.md: architecture diagram, dev vs prod comparison table, Spring profiles docs, file reference updates.
47 lines
446 B
Text
47 lines
446 B
Text
# Dependencies
|
|
node_modules/
|
|
frontend/node_modules/
|
|
|
|
# Build output
|
|
dist/
|
|
frontend/dist/
|
|
target/
|
|
*.class
|
|
*.jar
|
|
*.war
|
|
!.mvn/wrapper/maven-wrapper.jar
|
|
|
|
# Environment
|
|
.env
|
|
!.env.example
|
|
|
|
# IDE
|
|
.idea/
|
|
*.iml
|
|
.vscode/
|
|
.project
|
|
.classpath
|
|
.settings/
|
|
*.swp
|
|
*.swo
|
|
|
|
# OS
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
# Logs
|
|
*.log
|
|
|
|
# Obsidian (personal vault, not project)
|
|
.obsidian/
|
|
|
|
# Docker
|
|
docker-compose.override.yml
|
|
certs/
|
|
|
|
# Java
|
|
*.hprof
|
|
|
|
# Test
|
|
coverage/
|
|
frontend/coverage/
|