Files
huike-back/docker-compose.ts-e2e.yml
weli 44c320d8fa 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
2026-04-23 17:20:01 +08:00

34 lines
892 B
YAML

# 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