chore add core rust project files and diesel migrations
Track required workspace crates, scripts, and historical diesel migrations so the repository contains the complete runnable backend baseline. Made-with: Cursor
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
# PostgreSQL + Redis for htyts integration / e2e tests.
|
||||
# Aligns with AuthCore `docker-compose.test.yml` (postgres:14, redis:7), separate ports to avoid clashes.
|
||||
#
|
||||
# Schema: `htyts_models/migrations/*` (Diesel). Run `diesel migration run` after `up` — see `scripts/run-ts-e2e.sh`.
|
||||
#
|
||||
# Usage:
|
||||
# docker compose -f docker-compose.ts-e2e.yml up -d --wait
|
||||
# ./scripts/run-ts-e2e.sh
|
||||
#
|
||||
services:
|
||||
ts-e2e-db:
|
||||
image: postgres:14
|
||||
environment:
|
||||
POSTGRES_USER: htyts_e2e
|
||||
POSTGRES_PASSWORD: htyts_e2e
|
||||
POSTGRES_DB: htyts_e2e
|
||||
ports:
|
||||
- "5436:5432"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U htyts_e2e -d htyts_e2e"]
|
||||
interval: 3s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
|
||||
ts-e2e-redis:
|
||||
image: redis:7
|
||||
ports:
|
||||
- "6390:6379"
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 3s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
Reference in New Issue
Block a user