agnes-the-ai-analyst/docker-compose.test.yml
ZdenekSrotyr e1e2d6d903 feat: add SEED_ADMIN_EMAIL for Docker test environments
app/main.py: seed admin user on startup when SEED_ADMIN_EMAIL is set.
docker-compose.test.yml: expose port 8000, add seed env var.
2026-03-31 09:48:12 +02:00

21 lines
547 B
YAML

services:
app:
build: .
command: uvicorn app.main:app --host 0.0.0.0 --port 8000
ports:
- "8000:8000"
environment:
- DATA_DIR=/data
- JWT_SECRET_KEY=test-secret-for-ci-32chars!!!
- TESTING=true
- SEED_ADMIN_EMAIL=admin@test.com
volumes:
- test-data:/data
healthcheck:
test: ["CMD", "python", "-c", "import httpx; r=httpx.get('http://localhost:8000/api/health'); exit(0 if r.status_code==200 else 1)"]
interval: 5s
timeout: 3s
retries: 15
volumes:
test-data: