Richte Develop-Build und Main-Deploy analog zur Jinkendo-Familie ein.
Deploy Development / deploy (push) Successful in 1m6s
Test Suite / smoke-dev (push) Successful in 0s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-10-03 10:47:48 +02:00
1 parent 94053d7fbe
commit 3ac42645ef
29 files changed
+3047 -3

No files matched your search

+45
View File
@@ -0,0 +1,45 @@
# Disposable test stack. Uses tmpfs so the normal data volume is never touched.
# docker compose -f docker-compose.test.yml up --build --abort-on-container-exit --exit-code-from api
name: buyingagent-test
services:
postgres:
image: postgres:17-alpine
environment:
POSTGRES_DB: buyingagent_test
POSTGRES_USER: buyingagent_test
POSTGRES_PASSWORD: test
tmpfs:
- /var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U buyingagent_test -d buyingagent_test"]
interval: 5s
timeout: 5s
retries: 10
networks:
- buyingagent-test-network
api:
build:
context: .
dockerfile: Dockerfile
target: test
environment:
DB_HOST: postgres
DB_PORT: "5432"
DB_NAME: buyingagent_test
DB_USER: buyingagent_test
DB_PASSWORD: test
ENVIRONMENT: test
ENGINE_BUILD: test
depends_on:
postgres:
condition: service_healthy
command: ["pytest", "tests", "-ra"]
networks:
- buyingagent-test-network
networks:
buyingagent-test-network:
driver: bridge