Files
huike-back/docker-compose.authcore-e2e.yml
T
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

45 lines
1.2 KiB
YAML

# HTYTS + AuthCore HTYUC 本地联调:双 Postgres + Redis(端口与 `scripts/run-authcore-e2e-docker.sh` 一致)。
# 宿主机端口:15432 htyts、15433 htyuc、16379 redis,避免与本地 PostgreSQL/Redis 冲突。
#
# docker compose -f docker-compose.authcore-e2e.yml up -d --wait
# ./scripts/run-authcore-e2e-docker.sh
services:
authcore-e2e-pg-ts:
image: postgres:14
environment:
POSTGRES_USER: htyts_e2e
POSTGRES_PASSWORD: htyts_e2e
POSTGRES_DB: htyts_e2e
ports:
- "15432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U htyts_e2e -d htyts_e2e"]
interval: 3s
timeout: 5s
retries: 20
authcore-e2e-pg-uc:
image: postgres:14
environment:
POSTGRES_USER: htyuc
POSTGRES_PASSWORD: htyuc
POSTGRES_DB: htyuc_test
ports:
- "15433:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U htyuc -d htyuc_test"]
interval: 3s
timeout: 5s
retries: 20
authcore-e2e-redis:
image: redis:7
ports:
- "16379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 3s
timeout: 5s
retries: 20