Some checks failed
CI / Unit & Component Tests (push) Successful in 2m7s
CI / Backend Unit Tests (push) Successful in 2m3s
CI / E2E Tests (push) Failing after 14m54s
CI / Unit & Component Tests (pull_request) Successful in 2m4s
CI / E2E Tests (pull_request) Has been cancelled
CI / Backend Unit Tests (pull_request) Has been cancelled
- /forgot-password: email form → sends POST /api/auth/forgot-password → success banner - /reset-password: password form reads token from URL → sends POST /api/auth/reset-password - Login page: add "Passwort vergessen?" link - hooks.server.ts: add /forgot-password and /reset-password to PUBLIC_PATHS; skip auth injection for public auth API endpoints - errors.ts: add INVALID_RESET_TOKEN error code - i18n: add all new message keys in de/en/es - playwright.config.ts: use E2E_BASE_URL for webServer check URL (allows reusing docker dev server at port 5173 locally) - ci.yml: pass E2E_BACKEND_URL=http://localhost:8080 to E2E test step - e2e/password-reset.spec.ts: 5 tests (4 pass locally, full flow requires e2e profile in CI) - Regenerated OpenAPI types including new /api/auth/* endpoints Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
138 lines
3.9 KiB
YAML
138 lines
3.9 KiB
YAML
services:
|
|
# --- Datenbank: PostgreSQL ---
|
|
db:
|
|
image: postgres:16-alpine
|
|
container_name: archive-db
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_USER: ${POSTGRES_USER}
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
|
POSTGRES_DB: ${POSTGRES_DB}
|
|
volumes:
|
|
- ./data/postgres:/var/lib/postgresql/data
|
|
ports:
|
|
- "${PORT_DB}:5432"
|
|
networks:
|
|
- archive-net
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
# --- Object Storage: MinIO (S3 kompatibel) ---
|
|
minio:
|
|
image: minio/minio:latest
|
|
container_name: archive-minio
|
|
restart: unless-stopped
|
|
command: server /data --console-address ":9001"
|
|
environment:
|
|
MINIO_ROOT_USER: ${MINIO_ROOT_USER}
|
|
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
|
|
volumes:
|
|
- ./data/minio:/data
|
|
ports:
|
|
- "${PORT_MINIO_API}:9000" # API Port
|
|
- "${PORT_MINIO_CONSOLE}:9001" # Web-Oberfläche
|
|
networks:
|
|
- archive-net
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
|
|
interval: 30s
|
|
timeout: 20s
|
|
retries: 3
|
|
|
|
# --- Helper: Erstellt automatisch den Bucket ---
|
|
create-buckets:
|
|
image: minio/mc
|
|
depends_on:
|
|
minio:
|
|
condition: service_healthy
|
|
entrypoint: >
|
|
/bin/sh -c "
|
|
/usr/bin/mc alias set myminio http://minio:9000 ${MINIO_ROOT_USER} ${MINIO_ROOT_PASSWORD};
|
|
/usr/bin/mc mb myminio/${MINIO_DEFAULT_BUCKETS} --ignore-existing;
|
|
/usr/bin/mc anonymous set private myminio/${MINIO_DEFAULT_BUCKETS};
|
|
exit 0;
|
|
"
|
|
networks:
|
|
- archive-net
|
|
|
|
# --- Backend: Spring Boot ---
|
|
backend:
|
|
build:
|
|
context: ./backend
|
|
dockerfile: Dockerfile
|
|
container_name: archive-backend
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./backend:/app
|
|
- ./import:/import
|
|
- maven_cache:/root/.m2
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
minio:
|
|
condition: service_healthy
|
|
environment:
|
|
SPRING_DATASOURCE_URL: jdbc:postgresql://db:5432/${POSTGRES_DB}
|
|
SPRING_DATASOURCE_USERNAME: ${POSTGRES_USER}
|
|
SPRING_DATASOURCE_PASSWORD: ${POSTGRES_PASSWORD}
|
|
S3_ENDPOINT: http://minio:9000
|
|
S3_ACCESS_KEY: ${MINIO_ROOT_USER}
|
|
S3_SECRET_KEY: ${MINIO_ROOT_PASSWORD}
|
|
S3_BUCKET_NAME: ${MINIO_DEFAULT_BUCKETS}
|
|
S3_REGION: us-east-1
|
|
APP_BASE_URL: ${APP_BASE_URL:-http://localhost:3000}
|
|
MAIL_HOST: ${MAIL_HOST:-}
|
|
MAIL_PORT: ${MAIL_PORT:-587}
|
|
MAIL_USERNAME: ${MAIL_USERNAME:-}
|
|
MAIL_PASSWORD: ${MAIL_PASSWORD:-}
|
|
APP_MAIL_FROM: ${APP_MAIL_FROM:-noreply@familienarchiv.local}
|
|
ports:
|
|
- "${PORT_BACKEND}:8080"
|
|
networks:
|
|
- archive-net
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "wget -qO- http://localhost:8080/actuator/health | grep -q UP || exit 1"]
|
|
interval: 15s
|
|
timeout: 5s
|
|
retries: 10
|
|
start_period: 60s
|
|
|
|
# --- Frontend: SvelteKit (Dev Server) ---
|
|
frontend:
|
|
build:
|
|
context: ./frontend
|
|
dockerfile: Dockerfile
|
|
container_name: archive-frontend
|
|
restart: unless-stopped
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
minio:
|
|
condition: service_healthy
|
|
backend:
|
|
condition: service_healthy
|
|
volumes:
|
|
- ./frontend:/app
|
|
# Keep container's node_modules separate from host to avoid OS binary conflicts
|
|
- frontend_node_modules:/app/node_modules
|
|
environment:
|
|
# SSR calls (server-side) use the internal Docker network
|
|
API_INTERNAL_URL: http://backend:8080
|
|
# Vite dev proxy forwards /api from browser to the backend container
|
|
API_PROXY_TARGET: http://backend:8080
|
|
ports:
|
|
- "${PORT_FRONTEND}:5173"
|
|
networks:
|
|
- archive-net
|
|
|
|
networks:
|
|
archive-net:
|
|
driver: bridge
|
|
|
|
volumes:
|
|
frontend_node_modules:
|
|
maven_cache:
|