47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
# Zero-Check Tier 2 Integration Test Template
|
|
# Copy this into your project and uncomment the services you need.
|
|
#
|
|
# Usage:
|
|
# docker compose -f docker-compose.verify.yml up --build --abort-on-container-exit
|
|
# docker compose -f docker-compose.verify.yml down -v
|
|
|
|
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: ./Dockerfile
|
|
depends_on:
|
|
- db
|
|
environment:
|
|
- DATABASE_URL=postgresql://testuser:testpass@db:5432/testdb
|
|
# - REDIS_URL=redis://redis:6379/0
|
|
command: ["pytest", "--cov", "--cov-report=term-missing", "-q"]
|
|
|
|
db:
|
|
image: postgres:16-alpine
|
|
environment:
|
|
POSTGRES_USER: testuser
|
|
POSTGRES_PASSWORD: testpass
|
|
POSTGRES_DB: testdb
|
|
tmpfs:
|
|
- /var/lib/postgresql/data
|
|
|
|
# --- Uncomment services as needed ---
|
|
|
|
# redis:
|
|
# image: redis:7-alpine
|
|
# tmpfs:
|
|
# - /data
|
|
|
|
# mongo:
|
|
# image: mongo:7
|
|
# environment:
|
|
# MONGO_INITDB_ROOT_USERNAME: testuser
|
|
# MONGO_INITDB_ROOT_PASSWORD: testpass
|
|
# tmpfs:
|
|
# - /data/db
|
|
|
|
# rabbitmq:
|
|
# image: rabbitmq:3-alpine
|
|
# tmpfs:
|
|
# - /var/lib/rabbitmq |