forked from mgerstgrasser/tacheles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yaml
More file actions
40 lines (38 loc) · 930 Bytes
/
docker-compose.test.yaml
File metadata and controls
40 lines (38 loc) · 930 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
37
38
39
40
version: "3"
# This file is used for running end-to-end tests on github.
services:
inference:
build:
context: ./inference
dockerfile: Dockerfile.mock
network_mode: host
backend:
build:
context: ./backend
dockerfile: Dockerfile.dev
environment:
INFERENCE_API_URI: http://localhost:8000/v1
MODEL: ${MODEL}
volumes:
- ./backend:/app
depends_on:
- inference
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8001/api/healthcheck"]
interval: 5s
timeout: 5s
retries: 5
network_mode: host
frontend:
build:
context: ./frontend
volumes:
- ./frontend/src:/app/src
- ./frontend/public:/app/public
depends_on:
backend:
condition: service_healthy
network_mode: host
environment:
REACT_APP_BACKEND_URL: http://localhost:8001
command: ["npm", "run", "test:e2e"]