Files
Tracearr/docker/docker-compose.test.yml
Rephl3x 3015f48118
Some checks failed
CI / Lint & Typecheck (push) Has been cancelled
CI / Test (routes) (push) Has been cancelled
CI / Test (security) (push) Has been cancelled
CI / Test (services) (push) Has been cancelled
CI / Test (unit) (push) Has been cancelled
CI / Test (integration) (push) Has been cancelled
CI / Test Coverage (push) Has been cancelled
CI / Build (push) Has been cancelled
Initial Upload
2025-12-17 12:32:50 +13:00

38 lines
926 B
YAML

version: "3.8"
# Test database services - completely isolated from dev
# Run with: docker compose -f docker/docker-compose.test.yml up -d
services:
timescale-test:
image: timescale/timescaledb:latest-pg15
ports:
- "5433:5432" # Different port to avoid conflicts with dev
environment:
- POSTGRES_USER=test
- POSTGRES_PASSWORD=test
- POSTGRES_DB=tracearr_test
volumes:
- timescale_test_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U test -d tracearr_test"]
interval: 5s
timeout: 3s
retries: 5
redis-test:
image: redis:7-alpine
ports:
- "6380:6379" # Different port to avoid conflicts with dev
volumes:
- redis_test_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
volumes:
timescale_test_data:
redis_test_data: