mirror of
https://github.com/s-frick/effigenix.git
synced 2026-03-28 13:49:36 +01:00
54 lines
1.4 KiB
YAML
54 lines
1.4 KiB
YAML
version: '3.8'
|
|
|
|
# WICHTIG: Nur im Branch experiment/test-automation verwenden.
|
|
# Merge in main nur mit ausdrücklicher menschlicher Bestätigung.
|
|
|
|
services:
|
|
db:
|
|
image: postgres:15-alpine
|
|
environment:
|
|
POSTGRES_DB: effigenix
|
|
POSTGRES_USER: effigenix
|
|
POSTGRES_PASSWORD: effigenix
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U effigenix"]
|
|
interval: 5s
|
|
timeout: 3s
|
|
retries: 10
|
|
|
|
backend:
|
|
build:
|
|
context: ../backend
|
|
dockerfile: Dockerfile
|
|
environment:
|
|
SPRING_PROFILES_ACTIVE: test
|
|
SPRING_DATASOURCE_URL: jdbc:postgresql://db:5432/effigenix
|
|
SPRING_DATASOURCE_USERNAME: effigenix
|
|
SPRING_DATASOURCE_PASSWORD: effigenix
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "curl -f http://localhost:8080/actuator/health || exit 1"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 12
|
|
ports:
|
|
- "8080:8080"
|
|
|
|
e2e-runner:
|
|
build:
|
|
context: ..
|
|
dockerfile: test-automation/web-ui/Dockerfile
|
|
environment:
|
|
BASE_URL: http://backend:8080
|
|
TEST_USER_ADMIN: admin
|
|
TEST_USER_ADMIN_PASS: admin123
|
|
TEST_USER_VIEWER: viewer
|
|
TEST_USER_VIEWER_PASS: viewer123
|
|
depends_on:
|
|
backend:
|
|
condition: service_healthy
|
|
volumes:
|
|
- ./e2e-results:/app/test-automation/web-ui/playwright-report
|
|
- ./e2e-results:/app/test-automation/web-ui/test-results
|