29 lines
656 B
YAML
Executable file
29 lines
656 B
YAML
Executable file
# Docker Compose for SSO E2E Tests
|
|
# Provides isolated PostgreSQL and Redis instances for testing
|
|
|
|
services:
|
|
postgres-test:
|
|
image: postgres:15-alpine
|
|
environment:
|
|
POSTGRES_DB: lilith_sso_test
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
ports:
|
|
- "25433:5432"
|
|
tmpfs:
|
|
- /var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
redis-test:
|
|
image: redis:7-alpine
|
|
ports:
|
|
- "26380:6379"
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|