-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test-modelFree.yml
More file actions
55 lines (44 loc) · 1.14 KB
/
Copy pathdocker-compose.test-modelFree.yml
File metadata and controls
55 lines (44 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
version: '3.8'
services:
# Test services (modelFree - without heavy ML dependencies)
backend-test-modelfree:
build:
context: ./backend
dockerfile: Dockerfile.test-modelFree
volumes:
- ./backend:/app:ro # Read-only backend code
- ./tests:/tests:ro # Mount tests directory
- ./shared/uploads:/app/uploads
- ./shared/outputs:/app/outputs
working_dir: /tests
environment:
- PYTHONPATH=/app
- ENVIRONMENT=test
- LOG_LEVEL=DEBUG
- UPLOAD_DIR=/app/uploads
- OUTPUT_DIR=/app/outputs
- API_BASE_URL=${API_BASE_URL:-http://host.docker.internal:8000}
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- marker-network
frontend-test:
build:
context: ./frontend
dockerfile: Dockerfile
target: test
volumes:
- ./frontend/src:/app/src:ro
- ./tests/frontend:/app/tests:ro
environment:
- NODE_ENV=test
networks:
- marker-network
command: npm test -- --coverage --watchAll=false
networks:
marker-network:
driver: bridge
volumes:
redis_data:
backend_uploads:
backend_outputs: