refactor: update docker-compose and CI workflow for improved E2E testing
Deploy Development / deploy (push) Successful in 38s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 7s
Test Suite / playwright-tests (push) Failing after 6s

- Removed fixed container names in docker-compose.dev-env.yml to prevent conflicts during redeploys.
- Enhanced playwright.config.js comments for clarity on base URL usage in different environments.
- Updated .gitea/workflows/test.yml to streamline E2E testing setup, including conditional logic for local and production environments, and improved health check handling after deployment.
This commit is contained in:
Lars committed 2026-04-29 13:12:05 +02:00
1 parent 50b8ff12cd
commit f4a86f9726
3 files changed
+63 -13

No files matched your search

+3 -3
View File
@@ -1,9 +1,11 @@
version: '3.8'
# Keine festen container_name: Namen sind hostweit eindeutig und kollidieren bei
# erneuten Deploys / anderem Compose-Projektprefix. Compose vergibt z. B. <projekt>-postgres-1.
services:
postgres:
image: postgres:16-alpine
container_name: dev-shinkan-postgres
environment:
POSTGRES_DB: shinkan_dev
POSTGRES_USER: shinkan_dev
@@ -20,7 +22,6 @@ services:
build:
context: ./backend
dockerfile: Dockerfile
container_name: dev-shinkan-api
environment:
DB_HOST: postgres
DB_PORT: 5432
@@ -63,7 +64,6 @@ services:
# Leer = relative /api/*-URLs → gleicher Host wie die SPA (vermeidet Mixed Content HTTPS→HTTP)
args:
VITE_API_URL: ""
container_name: dev-shinkan-ui
ports:
- "3098:80"
depends_on: