-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
36 lines (33 loc) · 853 Bytes
/
docker-compose.test.yml
File metadata and controls
36 lines (33 loc) · 853 Bytes
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
name: spoolbuddy
services:
backend-test:
build:
context: .
dockerfile: Dockerfile.test
target: backend-test
volumes:
- ./backend:/app
environment:
TESTING: "1"
SPOOLBUDDY_DATABASE_PATH: ":memory:"
command: ["pytest", "tests/", "-v", "--tb=short", "-p", "no:cacheprovider", "-n", "auto"]
frontend-test:
build:
context: .
dockerfile: Dockerfile.test
target: frontend-test
volumes:
- ./frontend:/app/frontend
- /app/frontend/node_modules
command: ["npm", "test", "--", "--run"]
integration:
build: .
network_mode: host
environment:
SPOOLBUDDY_DATABASE_PATH: ":memory:"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/api/spools"]
interval: 5s
timeout: 5s
retries: 10
start_period: 10s