version: '3.8' services: # Redis for JWT revocation and rate limiting redis: image: redis:7-alpine container_name: api_test_redis ports: - "6380:6379" command: redis-server --save "" --appendonly no --maxmemory 256mb --maxmemory-policy allkeys-lru healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 1s timeout: 3s retries: 5 # PostgreSQL for configuration (if needed) postgres: image: postgres:16-alpine container_name: api_test_postgres ports: - "5433:5432" environment: POSTGRES_DB: foxhunt_test POSTGRES_USER: foxhunt_test POSTGRES_PASSWORD: test_password POSTGRES_INITDB_ARGS: "-E UTF8" healthcheck: test: ["CMD-SHELL", "pg_isready -U foxhunt_test"] interval: 1s timeout: 3s retries: 5 networks: default: name: api_test_network